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

@@ -52,6 +52,9 @@ public class PrivateProfileContextHelperActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
if (!android.os.Flags.allowPrivateProfile()) {
return;
}
setTheme(SetupWizardUtils.getTheme(this, getIntent()));
ThemeHelper.trySetDynamicColor(this);
super.onCreate(savedInstanceState);