Merge "Fix Developer options appears after first boot, disappers on Settings Menu Reload" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
81c03dc32f
@@ -1885,7 +1885,8 @@
|
||||
android:label="@string/development_settings_title"
|
||||
android:icon="@drawable/ic_settings_development"
|
||||
android:taskAffinity="com.android.settings"
|
||||
android:parentActivityName="Settings">
|
||||
android:parentActivityName="Settings"
|
||||
android:enabled="false">
|
||||
<intent-filter android:priority="1">
|
||||
<action android:name="android.settings.APPLICATION_DEVELOPMENT_SETTINGS" />
|
||||
<action android:name="com.android.settings.APPLICATION_DEVELOPMENT_SETTINGS" />
|
||||
|
@@ -1096,8 +1096,7 @@ public class SettingsActivity extends SettingsDrawerActivity
|
||||
enabled = false;
|
||||
}
|
||||
int state = pm.getComponentEnabledSetting(component);
|
||||
boolean isEnabled = state == PackageManager.COMPONENT_ENABLED_STATE_DEFAULT
|
||||
|| state == PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
|
||||
boolean isEnabled = state == PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
|
||||
if (isEnabled != enabled) {
|
||||
pm.setComponentEnabledSetting(component, enabled
|
||||
? PackageManager.COMPONENT_ENABLED_STATE_ENABLED
|
||||
|
Reference in New Issue
Block a user