Use untranslatable string when storing theme

This fixes #30
This commit is contained in:
tonymanou
2017-01-04 23:11:09 +01:00
committed by topjohnwu
parent 93598d3a51
commit ef2e02098d
9 changed files with 23 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ public class SplashActivity extends AppCompatActivity {
super.onCreate(savedInstanceState);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplication());
if (prefs.getString("theme", "").equals("Dark")) {
if (Utils.isDarkTheme(prefs.getString("theme", null), this)) {
setTheme(R.style.AppTheme_dh);
}