Put stricter flag checks
Also removed a log which gives away flag. Bug: 312976400 Test: manual Change-Id: I4a989de8b6b920666aabf0cc9311e28becc4d862
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user