diff options
| author | 2022-03-03 16:10:10 -0800 | |
|---|---|---|
| committer | 2022-03-03 16:12:00 -0800 | |
| commit | 2e5436868ff23183ebdf5b901fdb1ed48887b45c (patch) | |
| tree | b66bccaad5a86824d0120cb23c98564fac51ac92 | |
| parent | 8fa010d6a749928e4037a300076746746a6c9309 (diff) | |
Enable ThemeOverlayController on TV
Bug: 215242376
Fix: 215242376
Test: atest android.graphics.cts.SystemPaletteTest#testThemeStyles
Change-Id: I920ea014eea1bd72b114b049c6b9f7994a82b92f
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/tv/TVSystemUICoreStartableModule.kt | 9 |
1 files changed, 8 insertions, 1 deletions
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 +} |