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

Commit 807d8826 authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Only persist task bounds for freeform tasks.

Bug: 26216628
Change-Id: Ibe28d7f988675086e233da371baf526eb7254fa7
parent e27a3025
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -485,12 +485,9 @@ public class ActivityManager {
            return stackId == FREEFORM_WORKSPACE_STACK_ID;
        }

        /**
         * Returns true if the task bounds should persist across power cycles.
         */
        /** Returns true if the task bounds should persist across power cycles. */
        public static boolean persistTaskBounds(int stackId) {
            return isStaticStack(stackId) &&
                    stackId != DOCKED_STACK_ID && stackId != PINNED_STACK_ID;
            return stackId == FREEFORM_WORKSPACE_STACK_ID;
        }

        /**