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:
Abhijeet Kaur
2019-07-30 15:53:56 +01:00
parent a64c7b2698
commit 59be362d67
2 changed files with 2 additions and 3 deletions

View File

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