Update footer text whenever the ScreenPinningSettings is shown

Bug: 333029993
Test: atest ScreenPinningSettings
Test: manual
Flag: EXEMPT low risk bug fix
Change-Id: Ia14a50fcc81d672732b78c523968a5921cae65b1
This commit is contained in:
Chun-Ku Lin
2024-04-17 05:31:50 +00:00
parent 02f1db61d8
commit 247476bab7
2 changed files with 109 additions and 2 deletions

View File

@@ -240,9 +240,9 @@ public class ScreenPinningSettings extends SettingsPreferenceFragment
mUseScreenLock.setChecked(isScreenLockUsed());
mUseScreenLock.setTitle(getCurrentSecurityTitle(mLockPatternUtils));
} else {
mFooterPreference.setSummary(getAppPinningContent());
mUseScreenLock.setEnabled(false);
}
mFooterPreference.setSummary(getAppPinningContent());
}
private boolean isGuestModeSupported() {