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

Commit 3fc49491 authored by Alex Shabalin's avatar Alex Shabalin Committed by Alexandr Shabalin
Browse files

Add flag `enable_device_suggestions_preference` in the Media namespace.

Replace the flag `com.android.settings.flags.device_suggestions_preference`
with `com.android.media.flags.enable_device_suggestions_preference`.

NO_IFTTT=no need to update MediaControlsSettings, simple flag rename.

Flag: com.android.media.flags.enable_device_suggestions_preference
Test: locally on a dev device
Bug: 415096359
Change-Id: I02fe8ba55dc9b67861b720140885e5ed67dad67b
parent c69c5e7c
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -111,10 +111,3 @@ flag {
  description: "Enables alert indicator on homepage tiles"
  bug: "403326850"
}

flag {
  name: "device_suggestions_preference"
  namespace: "android_settings"
  description: "Add a preference for device suggestions in the media page"
  bug: "415096359"
}
+3 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.settings.sound

import com.android.media.flags.Flags.enableDeviceSuggestionsPreference

import android.app.settings.SettingsEnums
import android.content.Context
import com.android.settings.R
@@ -74,7 +76,7 @@ open class MediaControlsScreen(context: Context) :
        preferenceHierarchy(context, this) {
            +MediaControlsSwitchPreference(mediaControlsStore)
            +MediaControlsLockscreenSwitchPreference()
            if (Flags.deviceSuggestionsPreference()) {
            if (enableDeviceSuggestionsPreference()) {
                +SuggestionsPreference()
            }
        }