prefs.edit().putString(getString(R.string.wordListFileKey), application.getWordListFile().getAbsolutePath()).commit();
}
- /**
- * @author Dominik Köppl Preference: select default dictionary As this
+ /*
+ @author Dominik Köppl Preference: select default dictionary As this
* list is dynamically generated, we have to do it in this
* fashion
*/
prefs.registerOnSharedPreferenceChangeListener(this);
}
- @Override
- public void onContentChanged() {
- super.onContentChanged();
- }
-
@Override
public void onSharedPreferenceChanged(SharedPreferences p, String v) {
DictionaryApplication.INSTANCE.init(getApplicationContext());
final DictionaryApplication application = DictionaryApplication.INSTANCE;
File dictDir = application.getDictDir();
if (!dictDir.isDirectory() || !dictDir.canWrite() ||
- !application.checkFileCreate(dictDir)) {
+ !DictionaryApplication.checkFileCreate(dictDir)) {
String dirs = "";
String externalDir = Environment.getExternalStorageDirectory().getAbsolutePath();
if (new File(externalDir).canWrite())
File efd = null;
try {
efd = getApplicationContext().getExternalFilesDir(null);
- } catch (Exception e) {
+ } catch (Exception ignored) {
}
if (efd != null) {
String externalFilesDir = efd.getAbsolutePath();