Add an additional flag guard for Private Space implementation
This a layer of flag guarding only for the implementation of Private Space features excluding the APIs. The MVP flag allow_private_profile still guards all the features including the APIs. Bug: 326060689 Test: Manual - a few verifications that some feeatures are unavailable when this flag is disabled Test: Run presubmits and verify that nothing breaks Change-Id: I05f7e2f20c6132b33484bb133ce03a933ece485f
This commit is contained in:
@@ -478,7 +478,9 @@ public class ChooseLockPattern extends SettingsActivity {
|
||||
.getString(SET_WORK_PROFILE_PATTERN_HEADER,
|
||||
() -> getString(
|
||||
R.string.lockpassword_choose_your_profile_pattern_header));
|
||||
} else if (android.os.Flags.allowPrivateProfile() && isPrivateProfile()) {
|
||||
} else if (android.os.Flags.allowPrivateProfile()
|
||||
&& android.multiuser.Flags.enablePrivateSpaceFeatures()
|
||||
&& isPrivateProfile()) {
|
||||
msg = getString(R.string.private_space_choose_your_pattern_header);
|
||||
} else {
|
||||
msg = getString(R.string.lockpassword_choose_your_pattern_header);
|
||||
|
Reference in New Issue
Block a user