diff --git a/src/com/android/launcher3/settings/SettingsActivity.java b/src/com/android/launcher3/settings/SettingsActivity.java index 915e140aaf..f348a339fd 100644 --- a/src/com/android/launcher3/settings/SettingsActivity.java +++ b/src/com/android/launcher3/settings/SettingsActivity.java @@ -62,8 +62,9 @@ public class SettingsActivity extends FragmentActivity SharedPreferences.OnSharedPreferenceChangeListener{ /** List of fragments that can be hosted by this activity. */ - private static final List VALID_PREFERENCE_FRAGMENTS = Collections.singletonList( - DeveloperOptionsFragment.class.getName()); + private static final List VALID_PREFERENCE_FRAGMENTS = + !Utilities.IS_DEBUG_DEVICE ? Collections.emptyList() + : Collections.singletonList(DeveloperOptionsFragment.class.getName()); private static final String DEVELOPER_OPTIONS_KEY = "pref_developer_options"; private static final String FLAGS_PREFERENCE_KEY = "flag_toggler";