]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Fix crash opening dictionary.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 24 Aug 2015 20:58:59 +0000 (22:58 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 24 Aug 2015 20:58:59 +0000 (22:58 +0200)
Caused by conversion from ActionBarSherlock.

src/com/hughes/android/dictionary/DictionaryActivity.java

index 410cda1b9034d25871da3ada231af07ff6df4448..a37e3c472612275753c6781f8f46a846cd36bd1a 100644 (file)
@@ -226,6 +226,7 @@ public class DictionaryActivity extends ActionBarActivity {
         // Don't auto-launch if this fails.
         prefs.edit().remove(C.DICT_FILE).commit();
 
+        setContentView(R.layout.dictionary_activity);
 
         application = (DictionaryApplication) getApplication();
         theme = application.getSelectedTheme();
@@ -427,8 +428,6 @@ public class DictionaryActivity extends ActionBarActivity {
             fontSizeSp = 14;
         }
 
-        setContentView(R.layout.dictionary_activity);
-
         // ContextMenu.
         registerForContextMenu(getListView());