From cf8c0b8910140196c5102799b23a55156d432e3c Mon Sep 17 00:00:00 2001 From: Brandon Pollack Date: Mon, 26 Sep 2022 05:59:00 +0000 Subject: Code cleanup and inlining for ArcNotificationPresenter make NotifStackController injectable Change-Id: I445afea5563a007ed002be55ab4340792081d69e Merged-In: I445afea5563a007ed002be55ab4340792081d69e Test: Tests pass Bug: 249178891 --- .../statusbar/notification/collection/render/NotifStackController.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/NotifStackController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/NotifStackController.kt index b6278d1d5f01..fde4ecb7bcaa 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/NotifStackController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/NotifStackController.kt @@ -16,6 +16,8 @@ package com.android.systemui.statusbar.notification.collection.render +import javax.inject.Inject + /** An interface by which the pipeline can make updates to the notification root view. */ interface NotifStackController { /** Provides stats about the list of notifications attached to the shade */ @@ -42,6 +44,6 @@ data class NotifStats( * methods, rather than forcing us to add no-op implementations in their implementation every time * a method is added. */ -open class DefaultNotifStackController : NotifStackController { +open class DefaultNotifStackController @Inject constructor() : NotifStackController { override fun setNotifStats(stats: NotifStats) {} } \ No newline at end of file -- cgit v1.2.3-59-g8ed1b