Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a70cf60 authored by Steve Elliott's avatar Steve Elliott
Browse files

Remove NotifEntryMgr in NotifInteractionTracker

Bug: 200269355
Test: atest SystemUITests
Change-Id: I18bc75242592d8fee341bc8eae716d26ecfc8833
parent b8ea5216
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
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"