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

Commit f7fb5e39 authored by Winson Chung's avatar Winson Chung
Browse files

Fixing crash when checking for home task resizeability.

- If there is no home task, assume non-resizeable until user goes
  home.

Bug: 62033711
Test: Reboot phone, launch settings from QS, dock and ensure no
      crash.  Go home and ensure that launcher is still resizeable
      and bounds are correct.

Change-Id: Id7ccd6f54cc4dc248f90a1acb54509713c69b11b
parent c1affe14
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -738,7 +738,8 @@ public class TaskStack extends WindowContainer<Task> implements DimLayer.DimLaye

        // When the home stack is resizable, should always have the same stack and task bounds
        if (mStackId == HOME_STACK_ID) {
            if (findHomeTask().isResizeable()) {
            final Task homeTask = findHomeTask();
            if (homeTask != null && homeTask.isResizeable()) {
                // Calculate the home stack bounds when in docked mode and the home stack is
                // resizeable.
                getDisplayContent().mDividerControllerLocked