Always force update the transform when calling from RecentsImpl.

am: dec4430

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

Change-Id: I6e34782d46b12dd06dace21faea0befc06862437
This commit is contained in:
Winson
2016-04-01 18:34:49 +00:00
committed by android-build-merger
2 changed files with 6 additions and 2 deletions

View File

@@ -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());

View File

@@ -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;
}