Use setVisible instead of removePreference everywhere.
Change-Id: I2e8084b23d3cb2c0a31a38c01716fc76236734ea Fixes: 68956750 Test: robotests
This commit is contained in:
@@ -98,8 +98,8 @@ public class LockScreenNotificationPreferenceController extends AbstractPreferen
|
||||
mLockscreenProfile = (RestrictedDropDownPreference) screen.findPreference(
|
||||
mWorkSettingKey);
|
||||
} else {
|
||||
removePreference(screen, mWorkSettingKey);
|
||||
removePreference(screen, mWorkSettingCategoryKey);
|
||||
setVisible(screen, mWorkSettingKey, false /* visible */);
|
||||
setVisible(screen, mWorkSettingCategoryKey, false /* visible */);
|
||||
}
|
||||
mSettingObserver = new SettingObserver();
|
||||
initLockScreenNotificationPrefDisplay();
|
||||
|
Reference in New Issue
Block a user