Merge "Rename media control flag" into sc-dev am: 9fd619e7e4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15151227

Change-Id: Ifa57e1f33ef9c0d8c3cbbdda41e40b51e1381336
This commit is contained in:
Beth Thibodeau
2021-07-01 23:36:54 +00:00
committed by Automerger Merge Worker
2 changed files with 7 additions and 6 deletions

View File

@@ -11005,7 +11005,7 @@ public final class Settings {
*/
@Readable
public static final String SHOW_MEDIA_ON_QUICK_SETTINGS =
"qs_media_player";
"qs_media_controls";
/**
* The interval in milliseconds at which location requests will be throttled when they are

View File

@@ -44,15 +44,16 @@ class NotificationSectionsFeatureManagerTest : SysuiTestCase() {
public fun setup() {
manager = NotificationSectionsFeatureManager(proxyFake, mContext)
manager!!.clearCache()
originalQsMediaPlayer = Settings.System.getInt(context.getContentResolver(),
"qs_media_player", 1)
Settings.Global.putInt(context.getContentResolver(), "qs_media_player", 0)
originalQsMediaPlayer = Settings.Global.getInt(context.getContentResolver(),
Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, 1)
Settings.Global.putInt(context.getContentResolver(),
Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, 0)
}
@After
public fun teardown() {
Settings.Global.putInt(context.getContentResolver(), "qs_media_player",
originalQsMediaPlayer)
Settings.Global.putInt(context.getContentResolver(),
Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, originalQsMediaPlayer)
}
@Test