+ final DictionaryApplication application = (DictionaryApplication) getApplication();
+ setTheme(application.getSelectedTheme().themeId);
+
+ final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
+ if (prefs.getString(getString(R.string.quickdicDirectoryKey), "").equals("")) {
+ prefs.edit().putString(getString(R.string.quickdicDirectoryKey), application.getDictDir().getAbsolutePath()).commit();
+ }
+ if (prefs.getString(getString(R.string.wordListFileKey), "").equals("")) {
+ prefs.edit().putString(getString(R.string.wordListFileKey), application.getWordListFile().getAbsolutePath()).commit();
+ }