Merge "Fix the exception when shortcut info was removed before loading persisted bubbles" into rvc-dev am: 6c8c9ea8cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11931364 Change-Id: Iffad41a6ad73200cbc3f16ead94d3afe5eb1a42a
This commit is contained in:
@@ -162,7 +162,7 @@ internal class BubbleDataRepository @Inject constructor(
|
|||||||
// into Bubble.
|
// into Bubble.
|
||||||
val bubbles = entities.mapNotNull { entity ->
|
val bubbles = entities.mapNotNull { entity ->
|
||||||
shortcutMap[ShortcutKey(entity.userId, entity.packageName)]
|
shortcutMap[ShortcutKey(entity.userId, entity.packageName)]
|
||||||
?.first { shortcutInfo -> entity.shortcutId == shortcutInfo.id }
|
?.firstOrNull { shortcutInfo -> entity.shortcutId == shortcutInfo.id }
|
||||||
?.let { shortcutInfo -> Bubble(
|
?.let { shortcutInfo -> Bubble(
|
||||||
entity.key,
|
entity.key,
|
||||||
shortcutInfo,
|
shortcutInfo,
|
||||||
|
|||||||
Reference in New Issue
Block a user