summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steve Elliott <steell@google.com> 2022-08-30 17:05:32 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-08-30 17:05:32 +0000
commitc08941510012e3675aafc3e2e84be90f94b5fc0e (patch)
treea47f9c08cbddfa9a7166f5c25a4b9943cb7a8c56
parent716ba8ea29f595bc457af157dccc2064c0486fef (diff)
parent6a70cf605dd6f2009e996e400b505ef8343bee9f (diff)
Merge "Remove NotifEntryMgr in NotifInteractionTracker" into tm-qpr-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/NotificationInteractionTracker.kt7
1 files changed, 1 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInteractionTracker.kt b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInteractionTracker.kt
index 2ca1bebfcf9f..7b49ecdcd981 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInteractionTracker.kt
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInteractionTracker.kt
@@ -1,7 +1,6 @@
package com.android.systemui.statusbar
import com.android.systemui.dagger.SysUISingleton
-import com.android.systemui.statusbar.notification.NotificationEntryManager
import com.android.systemui.statusbar.notification.collection.NotificationEntry
import com.android.systemui.statusbar.notification.collection.notifcollection.NotifCollectionListener
import javax.inject.Inject
@@ -12,14 +11,12 @@ import javax.inject.Inject
*/
@SysUISingleton
class NotificationInteractionTracker @Inject constructor(
- private val clicker: NotificationClickNotifier,
- private val entryManager: NotificationEntryManager
+ clicker: NotificationClickNotifier,
) : NotifCollectionListener, NotificationInteractionListener {
private val interactions = mutableMapOf<String, Boolean>()
init {
clicker.addNotificationInteractionListener(this)
- entryManager.addCollectionListener(this)
}
fun hasUserInteractedWith(key: String): Boolean {
@@ -38,5 +35,3 @@ class NotificationInteractionTracker @Inject constructor(
interactions[key] = true
}
}
-
-private const val TAG = "NotificationInteractionTracker"