fix bug caused by new default theme

This commit is contained in:
Andrew Dolgov 2014-10-15 21:08:49 +04:00
parent 7cd1d630f9
commit eae22a4771
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@
android:key="category_look_and_feel" android:key="category_look_and_feel"
android:title="@string/look_and_feel" > android:title="@string/look_and_feel" >
<ListPreference <ListPreference
android:defaultValue="THEME_DARK" android:defaultValue="THEME_LIGHT"
android:entries="@array/pref_theme_names" android:entries="@array/pref_theme_names"
android:entryValues="@array/pref_theme_values" android:entryValues="@array/pref_theme_values"
android:key="theme" android:key="theme"

View File

@ -125,7 +125,7 @@ public class CommonActivity extends ActionBarActivity {
if (savedInstanceState != null) { if (savedInstanceState != null) {
m_theme = savedInstanceState.getString("theme"); m_theme = savedInstanceState.getString("theme");
} else { } else {
m_theme = m_prefs.getString("theme", "THEME_DARK"); m_theme = m_prefs.getString("theme", CommonActivity.THEME_DEFAULT);
} }
initDatabase(); initDatabase();