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

Commit 0732217c authored by Winson's avatar Winson Committed by android-build-merger
Browse files

Always force update the transform when calling from RecentsImpl.

am: dec4430d

* commit 'dec4430d':
  Always force update the transform when calling from RecentsImpl.

Change-Id: I6e34782d46b12dd06dace21faea0befc06862437
parents b7b3cb63 dec4430d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -794,6 +794,9 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener
            synchronized (mHeaderBarLock) {
                int toHeaderWidth = (int) toTransform.rect.width();
                int toHeaderHeight = (int) (mHeaderBar.getMeasuredHeight() * toTransform.scale);
                if (toHeaderWidth <= 0 || toHeaderHeight <= 0) {
                    return null;
                }
                boolean disabledInSafeMode = !toTask.isSystemApp && ssp.isInSafeMode();
                mHeaderBar.onTaskViewSizeChanged((int) toTransform.rect.width(),
                        (int) toTransform.rect.height());
+3 −2
Original line number Diff line number Diff line
@@ -803,8 +803,9 @@ public class TaskStackLayoutAlgorithm {
    public TaskViewTransform getStackTransformScreenCoordinates(Task task, float stackScroll,
            TaskViewTransform transformOut, TaskViewTransform frontTransform) {
        Rect windowRect = Recents.getSystemServices().getWindowRect();
        TaskViewTransform transform = getStackTransform(task, stackScroll, transformOut,
                frontTransform);
        TaskViewTransform transform = getStackTransform(task, stackScroll, mFocusState,
                transformOut, frontTransform, true /* forceUpdate */,
                false /* ignoreTaskOverrides */);
        transform.rect.offset(windowRect.left, windowRect.top);
        return transform;
    }