Change SUW theme style for Fingerprint and Face enrollment flow (3/n)
Apply SUW theme style for Fingerprint and Face enrollment flow Flag: EXEMPT Using setup library's flag Bug: 346562327 Test: manually build and perform a visual inspection. Change-Id: Ia6c4c3dbc78f9ad82b7f503d39e883480b09a92d
This commit is contained in:
@@ -213,8 +213,15 @@ public class ChooseLockPassword extends SettingsActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
setTheme(SetupWizardUtils.getTheme(this, getIntent()));
|
||||
ThemeHelper.trySetDynamicColor(this);
|
||||
if (ThemeHelper.shouldApplyGlifExpressiveStyle(getApplicationContext())) {
|
||||
if (!ThemeHelper.trySetSuwTheme(this)) {
|
||||
setTheme(ThemeHelper.getSuwDefaultTheme(getApplicationContext()));
|
||||
ThemeHelper.trySetDynamicColor(this);
|
||||
}
|
||||
} else {
|
||||
setTheme(SetupWizardUtils.getTheme(this, getIntent()));
|
||||
ThemeHelper.trySetDynamicColor(this);
|
||||
}
|
||||
super.onCreate(savedInstanceState);
|
||||
findViewById(R.id.content_parent).setFitsSystemWindows(false);
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
|
||||
|
@@ -168,8 +168,16 @@ public class ChooseLockPattern extends SettingsActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
setTheme(SetupWizardUtils.getTheme(this, getIntent()));
|
||||
ThemeHelper.trySetDynamicColor(this);
|
||||
if (ThemeHelper.shouldApplyGlifExpressiveStyle(getApplicationContext())) {
|
||||
if (!ThemeHelper.trySetSuwTheme(this)) {
|
||||
setTheme(ThemeHelper.getSuwDefaultTheme(getApplicationContext()));
|
||||
ThemeHelper.trySetDynamicColor(this);
|
||||
}
|
||||
} else {
|
||||
|
||||
setTheme(SetupWizardUtils.getTheme(this, getIntent()));
|
||||
ThemeHelper.trySetDynamicColor(this);
|
||||
}
|
||||
super.onCreate(savedInstanceState);
|
||||
findViewById(R.id.content_parent).setFitsSystemWindows(false);
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
|
||||
|
@@ -78,7 +78,15 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi
|
||||
setTheme(SetupWizardUtils.getTheme(this, getIntent()));
|
||||
mConfirmCredentialTheme = ConfirmCredentialTheme.NORMAL;
|
||||
}
|
||||
ThemeHelper.trySetDynamicColor(this);
|
||||
|
||||
if (ThemeHelper.shouldApplyGlifExpressiveStyle(getApplicationContext())) {
|
||||
if (!ThemeHelper.trySetSuwTheme(this)) {
|
||||
setTheme(ThemeHelper.getSuwDefaultTheme(getApplicationContext()));
|
||||
ThemeHelper.trySetDynamicColor(this);
|
||||
}
|
||||
} else {
|
||||
ThemeHelper.trySetDynamicColor(this);
|
||||
}
|
||||
super.onCreate(savedState);
|
||||
|
||||
if (mConfirmCredentialTheme == ConfirmCredentialTheme.NORMAL) {
|
||||
|
Reference in New Issue
Block a user