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

Commit 61e00508 authored by Steve Elliott's avatar Steve Elliott Committed by Automerger Merge Worker
Browse files

Merge "Remove NotifEntryMgr in NotifInteractionTracker" into tm-qpr-dev am:...

Merge "Remove NotifEntryMgr in NotifInteractionTracker" into tm-qpr-dev am: c0894151 am: f370406a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19735659



Change-Id: If90b9f074306c259455e087bf841479932ac3d32
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents c3d574cb f370406a
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"