Fix theme problems
This commit is contained in:
@@ -79,8 +79,8 @@ public class NfcOperationActivity extends BaseNfcActivity {
|
||||
@Override
|
||||
protected void initTheme() {
|
||||
mThemeChanger = new ThemeChanger(this);
|
||||
mThemeChanger.setThemes(R.style.Theme_Keychain_Light_Dialog_SecurityToken,
|
||||
R.style.Theme_Keychain_Dark_Dialog_SecurityToken);
|
||||
mThemeChanger.setThemes(R.style.Theme_Keychain_Light_Dialog,
|
||||
R.style.Theme_Keychain_Dark_Dialog);
|
||||
mThemeChanger.changeTheme();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,9 +40,9 @@ public class ThemeChanger {
|
||||
// hack to get holo design (which is not automatically applied due to activity's
|
||||
// Theme.NoDisplay)
|
||||
if (Constants.Pref.Theme.DARK.equals(preferences.getTheme())) {
|
||||
return new ContextThemeWrapper(context, R.style.Theme_AppCompat_Dialog);
|
||||
return new ContextThemeWrapper(context, R.style.Theme_Keychain_Dark);
|
||||
} else {
|
||||
return new ContextThemeWrapper(context, R.style.Theme_AppCompat_Light_Dialog);
|
||||
return new ContextThemeWrapper(context, R.style.Theme_Keychain_Light);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user