Merge "Update TaskView fullscreen params when updating the thumbnail matrix" into ub-launcher3-rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
42d16d758a
@@ -357,6 +357,7 @@ public class TaskThumbnailView extends View implements PluginListener<OverviewSc
|
||||
mBitmapShader.setLocalMatrix(mPreviewPositionHelper.mMatrix);
|
||||
mPaint.setShader(mBitmapShader);
|
||||
}
|
||||
getTaskView().updateCurrentFullscreenParams(mPreviewPositionHelper);
|
||||
invalidate();
|
||||
|
||||
// Update can be called from {@link #onSizeChanged} during layout, post handling of overlay
|
||||
|
||||
@@ -955,11 +955,7 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
|
||||
setClipToPadding(!isFullscreen);
|
||||
|
||||
TaskThumbnailView thumbnail = getThumbnail();
|
||||
mCurrentFullscreenParams.setProgress(
|
||||
mFullscreenProgress,
|
||||
getRecentsView().getScaleX(),
|
||||
getWidth(), mActivity.getDeviceProfile(),
|
||||
thumbnail.getPreviewPositionHelper());
|
||||
updateCurrentFullscreenParams(thumbnail.getPreviewPositionHelper());
|
||||
|
||||
if (!getRecentsView().isTaskIconScaledDown(this)) {
|
||||
// Some of the items in here are dependent on the current fullscreen params, but don't
|
||||
@@ -972,6 +968,14 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
|
||||
invalidateOutline();
|
||||
}
|
||||
|
||||
void updateCurrentFullscreenParams(PreviewPositionHelper previewPositionHelper) {
|
||||
mCurrentFullscreenParams.setProgress(
|
||||
mFullscreenProgress,
|
||||
getRecentsView().getScaleX(),
|
||||
getWidth(), mActivity.getDeviceProfile(),
|
||||
previewPositionHelper);
|
||||
}
|
||||
|
||||
public boolean isRunningTask() {
|
||||
if (getRecentsView() == null) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user