Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 177a544d authored by Steve Elliott's avatar Steve Elliott Committed by Android (Google) Code Review
Browse files

Merge "Remove failed icon bindings on subsequent success" into main

parents e27ccf7c 9aaef7dc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ object NotificationIconContainerViewBinder {
                }

                // Add and bind.
                val toAdd: Sequence<String> = iconsDiff.added.asSequence() + failedBindings
                val toAdd: Sequence<String> = iconsDiff.added.asSequence() + failedBindings.toList()
                for ((idx, notifKey) in toAdd.withIndex()) {
                    // Lookup the StatusBarIconView from the store.
                    val sbiv = viewStore.iconView(notifKey)
@@ -252,6 +252,7 @@ object NotificationIconContainerViewBinder {
                        failedBindings.add(notifKey)
                        continue
                    }
                    failedBindings.remove(notifKey)
                    // The view might still be transiently added if it was just removed and added
                    // again
                    view.removeTransientView(sbiv)