mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
ImportVoicePreference.java: fix a crash when no dictionaries are found
This commit is contained in:
@@ -83,8 +83,10 @@ public class ImportVoicePreference extends DialogPreference {
|
||||
return !file.isDirectory() && file.getName().endsWith("_dict");
|
||||
}
|
||||
});
|
||||
Arrays.sort(dictionaries);
|
||||
mDictionaries.setAdapter(new FileListAdapter((Activity)getContext(), dictionaries));
|
||||
if (dictionaries != null) {
|
||||
Arrays.sort(dictionaries);
|
||||
mDictionaries.setAdapter(new FileListAdapter((Activity) getContext(), dictionaries));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user