Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 943c64b2 authored by Abhijeet Kaur's avatar Abhijeet Kaur
Browse files

Make USE_BUGREPORT_API more widely available.

Previously this flag was in FeatureFlag for Settings, as only Settings
was using this flag. Now, we also need to use this feature flag while
migrating bugreports(from other callers such as Power buttons) to use the API.

In order to avoid flag duplication, adding it here, as Settings can
still access this feature flag.

Bug: 136548292
Test: Settings can still access this feature flag as before
Test: Builds and bugreports generated from Settings use the API flow
when the flag is turned on

Change-Id: Ia7409fc821e1438382e9b59c523ab72de519e861
parent 7bdc19ba
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3037,6 +3037,7 @@ package android.util {
    field public static final String SCREENRECORD_LONG_PRESS = "settings_screenrecord_long_press";
    field public static final String SEAMLESS_TRANSFER = "settings_seamless_transfer";
    field public static final String SETTINGS_WIFITRACKER2 = "settings_wifitracker2";
    field public static final String USE_BUGREPORT_API = "settings_use_bugreport_api";
  }

  public class TimeUtils {
+2 −1
Original line number Diff line number Diff line
@@ -41,13 +41,14 @@ public class FeatureFlagUtils {
    public static final String SCREENRECORD_LONG_PRESS = "settings_screenrecord_long_press";
    public static final String DYNAMIC_SYSTEM = "settings_dynamic_system";
    public static final String SETTINGS_WIFITRACKER2 = "settings_wifitracker2";
    public static final String USE_BUGREPORT_API = "settings_use_bugreport_api";

    private static final Map<String, String> DEFAULT_FLAGS;

    static {
        DEFAULT_FLAGS = new HashMap<>();
        DEFAULT_FLAGS.put("settings_audio_switcher", "true");
        DEFAULT_FLAGS.put("settings_call_bugreport_api", "false");
        DEFAULT_FLAGS.put("settings_use_bugreport_api", "false");
        DEFAULT_FLAGS.put("settings_mobile_network_v2", "true");
        DEFAULT_FLAGS.put("settings_network_and_internet_v2", "true");
        DEFAULT_FLAGS.put("settings_systemui_theme", "true");