fix issue where players would be wrongly dismissed

When resumption is disabled, we should only remove players when
timedOut is true.

Fixes: 158721393
Test: manual
Change-Id: I18b36c95ac72d5728ed203ac2b5d344b58676dc4
This commit is contained in:
Lucas Dupin
2020-06-16 16:44:53 -07:00
parent 384982ef62
commit a73d43fcee

View File

@@ -261,7 +261,7 @@ class MediaDataManager @Inject constructor(
}
it.active = !timedOut
onMediaDataLoaded(token, token, it)
} else {
} else if (timedOut) {
notificationEntryManager.removeNotification(it.notificationKey, null /* ranking */,
UNDEFINED_DISMISS_REASON)
}