Merge "Fix interaction tracking logic" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-05-27 14:22:38 +00:00
committed by Android (Google) Code Review

View File

@@ -22,7 +22,9 @@ class NotificationInteractionTracker @Inject constructor(
entryManager.addCollectionListener(this)
}
fun hasUserInteractedWith(key: String): Boolean = key in interactions
fun hasUserInteractedWith(key: String): Boolean {
return interactions[key] ?: false
}
override fun onEntryAdded(entry: NotificationEntry) {
interactions[entry.key] = false