Merge "Fix work profile setting appearing too often" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9cb5ab3860
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user