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

@@ -45,6 +45,9 @@ public class SetupSuccessFragment extends Fragment {
LayoutInflater inflater,
@Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
if (!android.os.Flags.allowPrivateProfile()) {
return null;
}
GlifLayout rootView =
(GlifLayout)
inflater.inflate(R.layout.privatespace_setup_success, container, false);