mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Don't allow starting DeveloperOptionsFragment on non-debug builds
Test: adb shell am start -n com.google.android.apps.nexuslauncher/com.android.launcher3.settings.SettingsActivity --es ":settings:fragment" "com.android.launcher3.settings.DeveloperOptionsFragment" Fixes: 199302659 Change-Id: I33dd4db3444c0ccabbe4dc3bb80db4167aec6a03
This commit is contained in:
@@ -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<String> VALID_PREFERENCE_FRAGMENTS = Collections.singletonList(
|
||||
DeveloperOptionsFragment.class.getName());
|
||||
private static final List<String> 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";
|
||||
|
||||
Reference in New Issue
Block a user