Gray out admin-disabled screenlock option properly
Fix an issue where some sceenlock options are disabled by admins but not showing up as grayed out. Bug: 288081292 Flag: EXEMPT bug fix Test: manually with `am start -a android.app.action.SET_NEW_PASSWORD --ez isSetupFlow true --ei android.app.extra.PASSWORD_COMPLEXITY 327680` Change-Id: I4aab61a052bc2c5146f44d0bfcd8153e3f2cee92
This commit is contained in:
@@ -243,6 +243,7 @@ public class SetupChooseLockGeneric extends ChooseLockGeneric {
|
|||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedState) {
|
protected void onCreate(Bundle savedState) {
|
||||||
setTheme(SetupWizardUtils.getTheme(this, getIntent()));
|
setTheme(SetupWizardUtils.getTheme(this, getIntent()));
|
||||||
|
setTheme(R.style.SettingsPreferenceTheme_SetupWizard);
|
||||||
ThemeHelper.trySetDynamicColor(this);
|
ThemeHelper.trySetDynamicColor(this);
|
||||||
super.onCreate(savedState);
|
super.onCreate(savedState);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user