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

Commit 2d9692f6 authored by Alex Chau's avatar Alex Chau
Browse files

Destroy taskbar if it's not present in DeviceProfile

Bug: 254119092
Test: manual
Change-Id: I9eb95cc90c92bf93d9220b05406d4589b2cb196f
parent 77a388c7
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -156,12 +156,16 @@ public class TaskbarManager {
                } else {
                    // Config change might be handled without re-creating the taskbar
                    if (mTaskbarActivityContext != null) {
                        if (dp != null && !isTaskbarPresent(dp)) {
                            destroyExistingTaskbar();
                        } else {
                            if (dp != null && isTaskbarPresent(dp)) {
                                mTaskbarActivityContext.updateDeviceProfile(dp, mNavMode);
                            }
                            mTaskbarActivityContext.onConfigurationChanged(configDiff);
                        }
                    }
                }
                mOldConfig = newConfig;
            }