diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-06-22 23:21:00 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-06-22 23:21:00 +0000 |
commit | 563bc3d1faae4be3c998ba89c5d102acf4f2dba8 (patch) | |
tree | 910a7a93cd8dbf7a9cac6e085b6b24ad9a5176f4 /quickstep | |
parent | c22289b69e390185c0019e9b4cc5cc9dfa01c2ac (diff) | |
parent | 26f02037cdc3302b93ccfcf3edd5f3fa0ce1db61 (diff) | |
download | android_packages_apps_Trebuchet-563bc3d1faae4be3c998ba89c5d102acf4f2dba8.tar.gz android_packages_apps_Trebuchet-563bc3d1faae4be3c998ba89c5d102acf4f2dba8.tar.bz2 android_packages_apps_Trebuchet-563bc3d1faae4be3c998ba89c5d102acf4f2dba8.zip |
Merge "Invoking splitscreen takes snapshot of task without scrim" into ub-launcher3-edmonton-polish
Diffstat (limited to 'quickstep')
-rw-r--r-- | quickstep/src/com/android/quickstep/TaskSystemShortcut.java | 5 | ||||
-rw-r--r-- | quickstep/src/com/android/quickstep/views/TaskThumbnailView.java | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/quickstep/src/com/android/quickstep/TaskSystemShortcut.java b/quickstep/src/com/android/quickstep/TaskSystemShortcut.java index c77d0c7d7..5a6312d4e 100644 --- a/quickstep/src/com/android/quickstep/TaskSystemShortcut.java +++ b/quickstep/src/com/android/quickstep/TaskSystemShortcut.java @@ -189,9 +189,14 @@ public class TaskSystemShortcut<T extends SystemShortcut> extends SystemShortcut final Rect taskBounds = new Rect(position[0], position[1], position[0] + width, position[1] + height); + // Take the thumbnail of the task without a scrim and apply it back after + float alpha = thumbnailView.getDimAlpha(); + thumbnailView.setDimAlpha(0); Bitmap thumbnail = RecentsTransition.drawViewIntoHardwareBitmap( taskBounds.width(), taskBounds.height(), thumbnailView, 1f, Color.BLACK); + thumbnailView.setDimAlpha(alpha); + AppTransitionAnimationSpecsFuture future = new AppTransitionAnimationSpecsFuture(mHandler) { @Override diff --git a/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java b/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java index 07f22aada..fb653cfac 100644 --- a/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java +++ b/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java @@ -161,6 +161,10 @@ public class TaskThumbnailView extends View { updateThumbnailPaintFilter(); } + public float getDimAlpha() { + return mDimAlpha; + } + public Rect getInsets() { if (mThumbnailData != null) { return mThumbnailData.insets; |