commit | 9bf5113e0617320db88a84932b6afefb816bd937 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Fri Apr 06 00:22:48 2018 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Apr 06 00:22:48 2018 +0000 |
tree | a0f712470dc4bfdb9f9af2de6655bc6559856413 | |
parent | 4b3551e97629ea1010ceed886e3341d6728b863c [diff] | |
parent | a0c9d90e7023f243ea93be99b7a5feb935008ea1 [diff] |
Merge "Fixing taskView sometimes visible during swipe-up transition" into ub-launcher3-master
diff --git a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java index 1b3dd2e..d4c35e0 100644 --- a/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java +++ b/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
@@ -647,6 +647,7 @@ mRecentsAnimationWrapper.controller.screenshotTask(app.taskId); TaskView taskView = mRecentsView.updateThumbnail(app.taskId, thumbnail); if (taskView != null) { + taskView.setAlpha(1); // Defer finishing the animation until the next launcher frame with the // new thumbnail mActivityControlHelper.executeOnNextDraw(mActivity, taskView,
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 3f509be..83fb634 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -232,7 +232,6 @@ final TaskView taskView = (TaskView) getChildAt(i); if (taskView.getTask().key.id == taskId) { taskView.onTaskDataLoaded(taskView.getTask(), thumbnailData); - taskView.setAlpha(1); return taskView; } }