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
This commit is contained in:
Charles Chen
2020-06-05 18:20:41 +08:00
parent 5c8f3b20d5
commit 51a6deb3e2

View File

@@ -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.