Use correct constants for Global Actions Panel settings.
Test: Automated tests pass. Manual testing allows enabling/disabling of secure setting via Settings preference. Fixes: 132182180 Fixes: 132184167 Change-Id: I62caccfe64e073c95b0c0f8a42e5728cf7f3c1ca
This commit is contained in:
@@ -25,12 +25,11 @@ import com.android.internal.annotations.VisibleForTesting;
|
||||
public class GlobalActionsPanelPreferenceController extends GesturePreferenceController {
|
||||
private static final String PREF_KEY_VIDEO = "global_actions_panel_video";
|
||||
|
||||
// TODO (b/132182180) -- Use Secure Settings constants instead of hard-coded strings
|
||||
@VisibleForTesting
|
||||
protected static final String ENABLED_SETTING = "global_actions_panel_enabled";
|
||||
// TODO (b/132182180) -- Use Secure Settings constants instead of hard-coded strings
|
||||
protected static final String ENABLED_SETTING = Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED;
|
||||
@VisibleForTesting
|
||||
protected static final String AVAILABLE_SETTING = "global_actions_panel_available";
|
||||
protected static final String AVAILABLE_SETTING =
|
||||
Settings.Secure.GLOBAL_ACTIONS_PANEL_AVAILABLE;
|
||||
|
||||
@VisibleForTesting
|
||||
protected static final String TOGGLE_KEY = "gesture_global_actions_panel_switch";
|
||||
|
@@ -33,10 +33,9 @@ public class GlobalActionsPanelSettings extends DashboardFragment {
|
||||
|
||||
private static final String TAG = "GlobalActionsPanelSettings";
|
||||
|
||||
// TODO (132184167): Use correct settings constant
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return SettingsEnums.SETTINGS_GESTURES;
|
||||
return SettingsEnums.GLOBAL_ACTIONS_PANEL_SETTINGS;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user