commit | a0c9d90e7023f243ea93be99b7a5feb935008ea1 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Thu Apr 05 17:05:29 2018 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Thu Apr 05 17:06:39 2018 -0700 |
tree | 6fcd9220fa5fea57b7f5ef1b00d7cad57b6bc235 | |
parent | ca90706994335fd9a145c0969562dd27cb3c56a9 [diff] |
Fixing taskView sometimes visible during swipe-up transition Caused by change-id: I4defce3a9745407523de651aeb28a37867567507 Change-Id: I670e20da6086d257b4de45d4e1310ef6b4314c46
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 c2e1ce6..751ad2a 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; } }