Enable/disable a few things in debuggable builds
- Feature flag dashboard is now only ON in debuggable builds - Draw overlay is enabled in debuggable builds for a11y testing Fixes: 129060539 Fixes: 129041251 Test: robotests Change-Id: Ic799101c8ca6cbcd26fe02b6a567f223800805ab
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.settings.development.featureflags;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.util.FeatureFlagUtils;
|
||||
|
||||
import androidx.preference.PreferenceGroup;
|
||||
@@ -39,7 +40,7 @@ public class FeatureFlagsPreferenceController extends BasePreferenceController
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return AVAILABLE;
|
||||
return Build.IS_DEBUGGABLE ? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user