From 2e5436868ff23183ebdf5b901fdb1ed48887b45c Mon Sep 17 00:00:00 2001 From: Hongguang Date: Thu, 3 Mar 2022 16:10:10 -0800 Subject: Enable ThemeOverlayController on TV Bug: 215242376 Fix: 215242376 Test: atest android.graphics.cts.SystemPaletteTest#testThemeStyles Change-Id: I920ea014eea1bd72b114b049c6b9f7994a82b92f --- .../src/com/android/systemui/tv/TVSystemUICoreStartableModule.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/tv/TVSystemUICoreStartableModule.kt b/packages/SystemUI/src/com/android/systemui/tv/TVSystemUICoreStartableModule.kt index ad8dc825dbcb..9cfebdd35489 100644 --- a/packages/SystemUI/src/com/android/systemui/tv/TVSystemUICoreStartableModule.kt +++ b/packages/SystemUI/src/com/android/systemui/tv/TVSystemUICoreStartableModule.kt @@ -32,6 +32,7 @@ import com.android.systemui.statusbar.tv.TvStatusBar import com.android.systemui.statusbar.tv.VpnStatusObserver import com.android.systemui.statusbar.tv.notifications.TvNotificationHandler import com.android.systemui.statusbar.tv.notifications.TvNotificationPanel +import com.android.systemui.theme.ThemeOverlayController import com.android.systemui.toast.ToastUI import com.android.systemui.usb.StorageNotification import com.android.systemui.util.NotificationChannels @@ -108,6 +109,12 @@ abstract class TVSystemUICoreStartableModule { @ClassKey(StorageNotification::class) abstract fun bindStorageNotification(sysui: StorageNotification): CoreStartable + /** Inject into ThemeOverlayController. */ + @Binds + @IntoMap + @ClassKey(ThemeOverlayController::class) + abstract fun bindThemeOverlayController(sysui: ThemeOverlayController): CoreStartable + /** Inject into ToastUI. */ @Binds @IntoMap @@ -161,4 +168,4 @@ abstract class TVSystemUICoreStartableModule { @IntoMap @ClassKey(WMShell::class) abstract fun bindWMShell(sysui: WMShell): CoreStartable -} \ No newline at end of file +} -- cgit v1.2.3-59-g8ed1b