Make GLIF theme default for confirm lock screen
Use GLIF theme as the default for confirm lock screen, even for "external" launches of the screen. Renamed the theme from "internal" to "normal" to reflect this change. Dark theme code will be cleaned up later. Test: Existing tests pass Bug: 62573742 Change-Id: I86958eb3a440d7274807f1cf453c3e53c16c23e7
This commit is contained in:
@@ -34,8 +34,8 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi
|
||||
private static final String STATE_IS_KEYGUARD_LOCKED = "STATE_IS_KEYGUARD_LOCKED";
|
||||
|
||||
enum ConfirmCredentialTheme {
|
||||
INTERNAL,
|
||||
DARK,
|
||||
NORMAL,
|
||||
DARK, // TODO(yukl): Clean up DARK theme, as it should no longer be used
|
||||
WORK
|
||||
}
|
||||
|
||||
@@ -63,11 +63,11 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi
|
||||
mConfirmCredentialTheme = ConfirmCredentialTheme.DARK;
|
||||
} else {
|
||||
setTheme(SetupWizardUtils.getTheme(getIntent()));
|
||||
mConfirmCredentialTheme = ConfirmCredentialTheme.INTERNAL;
|
||||
mConfirmCredentialTheme = ConfirmCredentialTheme.NORMAL;
|
||||
}
|
||||
super.onCreate(savedState);
|
||||
|
||||
if (mConfirmCredentialTheme == ConfirmCredentialTheme.INTERNAL) {
|
||||
if (mConfirmCredentialTheme == ConfirmCredentialTheme.NORMAL) {
|
||||
// Prevent the content parent from consuming the window insets because GlifLayout uses
|
||||
// it to show the status bar background.
|
||||
LinearLayout layout = (LinearLayout) findViewById(R.id.content_parent);
|
||||
|
Reference in New Issue
Block a user