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

Commit 51a6deb3 authored by Charles Chen's avatar Charles Chen
Browse files

Ensure that stack view exists when applyUpdate

In applyUpdate(), there's a chance that stack view has been removed.
Ensure stack view is created before updating.

fixes: 157778325
fixes: 157944021
Test: atest BubbleControllerTest
Change-Id: I6ff111bf74c11bf44cb8a27260d4dfc04f5d3423
parent 5c8f3b20
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1116,6 +1116,8 @@ public class BubbleController implements ConfigurationController.ConfigurationLi

        @Override
        public void applyUpdate(BubbleData.Update update) {
            ensureStackViewCreated();

            // Lazy load overflow bubbles from disk
            loadOverflowBubblesFromDisk();
            // Update bubbles in overflow.