Don't allow starting DeveloperOptionsFragment on non-debug builds am: a343699760

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15787659

Change-Id: I268204c3f0597fb4609437a94efdffcdfdb6b4f0
This commit is contained in:
Tony Wickham 2021-09-08 21:28:46 +00:00 committed by Automerger Merge Worker
commit 9ac2800849
1 changed files with 3 additions and 2 deletions

View File

@ -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";