Put stricter flag checks

Also removed a log which gives away flag.

Bug: 312976400
Test: manual
Change-Id: I4a989de8b6b920666aabf0cc9311e28becc4d862
This commit is contained in:
Manish Singh
2023-11-23 23:23:20 +00:00
parent f403dc9c79
commit 51f1321b1e
18 changed files with 61 additions and 10 deletions

View File

@@ -66,9 +66,8 @@ public class PrivateSpaceAuthenticationActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (Flags.allowPrivateProfile()) {
super.onCreate(savedInstanceState);
ThemeHelper.trySetDynamicColor(this);
mPrivateSpaceMaintainer = new Injector().injectPrivateSpaceMaintainer(
getApplicationContext());
@@ -87,7 +86,6 @@ public class PrivateSpaceAuthenticationActivity extends FragmentActivity {
promptToSetDeviceLock();
}
} else {
Log.w(TAG, "allowPrivateProfile flag is Off!");
finish();
}
}