summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2014-12-17 10:12:54 -0800
committerWinson Chung <winsonc@google.com>2014-12-18 11:27:18 -0800
commite494c382c0caf35f225dfb55f0e3b992c14d79f5 (patch)
tree16b74f68bf365a47f4db20f21acc8dcdef8b1799 /packages/SystemUI/src
parente405e59e5b10aaf64c5f10e1336f43e092ce390b (diff)
downloadframeworks_base-e494c382c0caf35f225dfb55f0e3b992c14d79f5.zip
frameworks_base-e494c382c0caf35f225dfb55f0e3b992c14d79f5.tar.gz
frameworks_base-e494c382c0caf35f225dfb55f0e3b992c14d79f5.tar.bz2
Bug 18784289: Fix issue with transition animation callback.
This is a regression where we changed the source view for the transition to dummy view, but since it was not yet attached, it could not get the handler implicitly to post the onAnimationCompleted callback. This CL modifies these ActivityOption transitions to also take an explicit handler to process the callback on. Bug: 18784289 Change-Id: I73f745c33b9f8aed91f8d9cd975f37cf7e4128f1
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java2
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java b/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java
index 09a6ccc..22ded86 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java
@@ -594,7 +594,7 @@ public class AlternateRecentsComponent implements ActivityOptions.OnAnimationSta
mStartAnimationTriggered = false;
return ActivityOptions.makeThumbnailAspectScaleDownAnimation(mDummyStackView,
thumbnail, toTaskRect.left, toTaskRect.top, toTaskRect.width(),
- toTaskRect.height(), this);
+ toTaskRect.height(), mHandler, this);
}
// If both the screenshot and thumbnail fails, then just fall back to the default transition
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
index 746a7df..ee79242 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
@@ -477,7 +477,7 @@ public class RecentsView extends FrameLayout implements TaskStackView.TaskStackV
}
opts = ActivityOptions.makeThumbnailAspectScaleUpAnimation(sourceView,
b, offsetX, offsetY, transform.rect.width(), transform.rect.height(),
- animStartedListener);
+ sourceView.getHandler(), animStartedListener);
}
final ActivityOptions launchOpts = opts;