Fix sketchy usage of new PreferenceScreen
Things get weird if you don't use PreferenceManager#createPreferenceScreen Bug: 37216851 Test: Compiles and runs Change-Id: I7cebec133c4f27f7eeda83c95d8acb4823f67dc4
This commit is contained in:
@@ -396,7 +396,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
||||
// Block access to developer options if the user is not the owner, if user policy
|
||||
// restricts it, or if the device has not been provisioned
|
||||
mUnavailable = true;
|
||||
setPreferenceScreen(new PreferenceScreen(getPrefContext(), null));
|
||||
addPreferencesFromResource(R.xml.empty_settings);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user