Use USE_BUGREPORT_API flag from FeatureFlagUtils
To avoid flag duplication, this flag is moved to FeatureFlagUtils.java where other callers can also use this flag. Using this flag's value from FeatureFlagUtils instead of the local FeatureFlag file in Settings. Bug: 136548292 Test: Settings can still access this feature flag as before Test: Builds and API workflow gets triggered by turning on the flag Change-Id: I60e4d96033219c934a43e728705fee93e338d60e
This commit is contained in:
@@ -114,8 +114,8 @@ public class BugreportPreference extends CustomDialogPreferenceCompat {
|
||||
// untouched. To switch to the new workflow using Bugreport API run the following
|
||||
// commands on the terminal:
|
||||
// * adb root
|
||||
// * adb shell setprop settings_call_bugreport_api true
|
||||
if (FeatureFlagUtils.isEnabled(context, FeatureFlags.USE_BUGREPORT_API)) {
|
||||
// * adb shell setprop settings_use_bugreport_api true
|
||||
if (FeatureFlagUtils.isEnabled(context, FeatureFlagUtils.USE_BUGREPORT_API)) {
|
||||
Intent triggerShellBugreport = new Intent();
|
||||
triggerShellBugreport.setAction(INTENT_BUGREPORT_REQUESTED);
|
||||
triggerShellBugreport.setPackage(SHELL_APP_PACKAGE);
|
||||
|
Reference in New Issue
Block a user