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

Commit 2fee4eb0 authored by Jagrut Desai's avatar Jagrut Desai
Browse files

Fixing NullPointerException in TaskbarUIController

Test: Presubmit
Bug: 322617093
Flag: NONE
Change-Id: I648ff17bbc666f30bd43fdab3320d058ac9e1f9f
parent 40804529
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -93,6 +93,7 @@ public class TaskbarUIController {
    public void onTaskbarIconLaunched(ItemInfo item) {
    public void onTaskbarIconLaunched(ItemInfo item) {
        // When launching from Taskbar, e.g. from Overview, set FLAG_IN_APP immediately instead of
        // When launching from Taskbar, e.g. from Overview, set FLAG_IN_APP immediately instead of
        // waiting for onPause, to reduce potential visual noise during the app open transition.
        // waiting for onPause, to reduce potential visual noise during the app open transition.
        if (mControllers.taskbarStashController == null) return;
        mControllers.taskbarStashController.updateStateForFlag(FLAG_IN_APP, true);
        mControllers.taskbarStashController.updateStateForFlag(FLAG_IN_APP, true);
        mControllers.taskbarStashController.applyState();
        mControllers.taskbarStashController.applyState();
    }
    }