mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Fix new theme issue (number 3)
This commit is contained in:
parent
c783ceeb2d
commit
5ecc48fe70
4 changed files with 6 additions and 6 deletions
|
|
@ -24,7 +24,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer
|
|||
getDelegate().installViewFactory();
|
||||
getDelegate().onCreate(savedInstanceState);
|
||||
// Check prefs on every activity starts
|
||||
if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean("theme",false)) {
|
||||
if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean("theme",true)) {
|
||||
setTheme(R.style.DarkAppTheme);
|
||||
}else {
|
||||
setTheme(R.style.LightAppTheme); // default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue