Merge "Fix work profile setting appearing too often" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-05-10 13:26:31 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ public class RedactNotificationPreferenceController extends TogglePreferenceCont
public int getAvailabilityStatus() {
// hide work profile setting if no work profile
if (KEY_LOCKSCREEN_WORK_PROFILE_REDACT.equals(getPreferenceKey())
&& mProfileUserId == UserHandle.USER_NULL) {
&& mProfileUserId == UserHandle.myUserId()) {
return CONDITIONALLY_UNAVAILABLE;
}