diff options
| author | 2020-05-27 14:22:38 +0000 | |
|---|---|---|
| committer | 2020-05-27 14:22:38 +0000 | |
| commit | d94f939535bc7b58af0945a388c888e6988ba79c (patch) | |
| tree | b5c6d0bcab8bb7d1897442563b4b6f7888886411 | |
| parent | 155d909a0811a383bd0f7d301d9cf28c5058cb4b (diff) | |
| parent | 0dc1bb8302247b9048e3c1a38c5e73e1accf36a1 (diff) | |
Merge "Fix interaction tracking logic" into rvc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/NotificationInteractionTracker.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInteractionTracker.kt b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInteractionTracker.kt index 2ed04eb088a3..9dbec1037aa5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInteractionTracker.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInteractionTracker.kt @@ -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 |