mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Merge "Invoking splitscreen takes snapshot of task without scrim" into ub-launcher3-edmonton-polish
This commit is contained in:
committed by
Android (Google) Code Review
commit
563bc3d1fa
@@ -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
|
||||
|
||||
@@ -161,6 +161,10 @@ public class TaskThumbnailView extends View {
|
||||
updateThumbnailPaintFilter();
|
||||
}
|
||||
|
||||
public float getDimAlpha() {
|
||||
return mDimAlpha;
|
||||
}
|
||||
|
||||
public Rect getInsets() {
|
||||
if (mThumbnailData != null) {
|
||||
return mThumbnailData.insets;
|
||||
|
||||
Reference in New Issue
Block a user