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

Commit afce98b2 authored by Beth Thibodeau's avatar Beth Thibodeau Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: Ifa57e1f33ef9c0d8c3cbbdda41e40b51e1381336
parents 20c77234 9fd619e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -11005,7 +11005,7 @@ public final class Settings {
         */
         */
        @Readable
        @Readable
        public static final String SHOW_MEDIA_ON_QUICK_SETTINGS =
        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
         * The interval in milliseconds at which location requests will be throttled when they are
+6 −5
Original line number Original line Diff line number Diff line
@@ -44,15 +44,16 @@ class NotificationSectionsFeatureManagerTest : SysuiTestCase() {
    public fun setup() {
    public fun setup() {
        manager = NotificationSectionsFeatureManager(proxyFake, mContext)
        manager = NotificationSectionsFeatureManager(proxyFake, mContext)
        manager!!.clearCache()
        manager!!.clearCache()
        originalQsMediaPlayer = Settings.System.getInt(context.getContentResolver(),
        originalQsMediaPlayer = Settings.Global.getInt(context.getContentResolver(),
                "qs_media_player", 1)
                Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, 1)
        Settings.Global.putInt(context.getContentResolver(), "qs_media_player", 0)
        Settings.Global.putInt(context.getContentResolver(),
                Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, 0)
    }
    }


    @After
    @After
    public fun teardown() {
    public fun teardown() {
        Settings.Global.putInt(context.getContentResolver(), "qs_media_player",
        Settings.Global.putInt(context.getContentResolver(),
                originalQsMediaPlayer)
                Settings.Global.SHOW_MEDIA_ON_QUICK_SETTINGS, originalQsMediaPlayer)
    }
    }


    @Test
    @Test