Put stricter flag checks
Also removed a log which gives away flag. Bug: 312976400 Test: manual Change-Id: I4a989de8b6b920666aabf0cc9311e28becc4d862
This commit is contained in:
@@ -19,6 +19,7 @@ package com.android.settings.privatespace.onelock;
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
@@ -34,6 +35,13 @@ public class UseOneLockSettingsFragment extends DashboardFragment {
|
||||
public static final int UNIFY_PRIVATE_LOCK_WITH_DEVICE_REQUEST = 1;
|
||||
public static final int UNUNIFY_PRIVATE_LOCK_FROM_DEVICE_REQUEST = 2;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle icicle) {
|
||||
if (android.os.Flags.allowPrivateProfile()) {
|
||||
super.onCreate(icicle);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return SettingsEnums.PRIVATE_SPACE_SETTINGS;
|
||||
|
||||
Reference in New Issue
Block a user