Merge "Fix the exception when shortcut info was removed before loading persisted bubbles" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6c8c9ea8cb
@@ -162,7 +162,7 @@ internal class BubbleDataRepository @Inject constructor(
|
||||
// into Bubble.
|
||||
val bubbles = entities.mapNotNull { entity ->
|
||||
shortcutMap[ShortcutKey(entity.userId, entity.packageName)]
|
||||
?.first { shortcutInfo -> entity.shortcutId == shortcutInfo.id }
|
||||
?.firstOrNull { shortcutInfo -> entity.shortcutId == shortcutInfo.id }
|
||||
?.let { shortcutInfo -> Bubble(
|
||||
entity.key,
|
||||
shortcutInfo,
|
||||
|
||||
Reference in New Issue
Block a user