From 6eec7f21904b92d33d6b28899197d58067c6c1da Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Fri, 8 May 2020 22:18:07 -0700 Subject: [PATCH] Fixed failing SectionManagerTests The setting moved to global Fixes: 156140047 Test: atest SystemUItests Change-Id: I8ca6ccd099264f998ef5641937858ad121f36075 --- .../notification/NotificationSectionsFeatureManagerTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationSectionsFeatureManagerTest.kt b/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationSectionsFeatureManagerTest.kt index b501a2ebeb64c..ca7a5dbdc36d4 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationSectionsFeatureManagerTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationSectionsFeatureManagerTest.kt @@ -49,12 +49,12 @@ class NotificationSectionsFeatureManagerTest : SysuiTestCase() { manager!!.clearCache() originalQsMediaPlayer = Settings.System.getInt(context.getContentResolver(), "qs_media_player", 1) - Settings.System.putInt(context.getContentResolver(), "qs_media_player", 0) + Settings.Global.putInt(context.getContentResolver(), "qs_media_player", 0) } @After public fun teardown() { - Settings.System.putInt(context.getContentResolver(), "qs_media_player", + Settings.Global.putInt(context.getContentResolver(), "qs_media_player", originalQsMediaPlayer) }