Don't show setting if private profile is locked
Bug: 311343261 Test: manual Change-Id: I16e1f08c7cace0964e666a71e785fee1c18cc577
This commit is contained in:
@@ -33,6 +33,14 @@ public class PrivateSpaceDashboardFragment extends DashboardFragment {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
if (PrivateSpaceMaintainer.getInstance(getContext()).isPrivateSpaceLocked()) {
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getPreferenceScreenResId() {
|
||||
return R.xml.private_space_settings;
|
||||
|
Reference in New Issue
Block a user