Merge "Inline TaskView#resetVisualProperties() into RecentsView" into ub-launcher3-rvc-dev am: f13a51c4b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11917351 Change-Id: I6d7f8483d94e7fcd480dca0d1b3bd72f7865f884
This commit is contained in:
commit
1c5a3e082b
|
@ -798,8 +798,10 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
|
|||
for (int i = getTaskViewCount() - 1; i >= 0; i--) {
|
||||
TaskView taskView = getTaskViewAt(i);
|
||||
if (mIgnoreResetTaskId != taskView.getTask().key.id) {
|
||||
taskView.resetVisualProperties();
|
||||
taskView.resetViewTransforms();
|
||||
taskView.setStableAlpha(mContentAlpha);
|
||||
taskView.setFullscreenProgress(mFullscreenProgress);
|
||||
taskView.setModalness(mTaskModalness);
|
||||
}
|
||||
}
|
||||
if (mRunningTaskTileHidden) {
|
||||
|
|
|
@ -545,7 +545,7 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
|
|||
setIconAndDimTransitionProgress(iconScale, invert);
|
||||
}
|
||||
|
||||
private void resetViewTransforms() {
|
||||
protected void resetViewTransforms() {
|
||||
setCurveScale(1);
|
||||
setTranslationX(0f);
|
||||
setTranslationY(0f);
|
||||
|
@ -554,12 +554,6 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
|
|||
setIconScaleAndDim(1);
|
||||
}
|
||||
|
||||
public void resetVisualProperties() {
|
||||
resetViewTransforms();
|
||||
setFullscreenProgress(0);
|
||||
setModalness(0);
|
||||
}
|
||||
|
||||
public void setStableAlpha(float parentAlpha) {
|
||||
mStableAlpha = parentAlpha;
|
||||
setAlpha(mStableAlpha);
|
||||
|
|
Loading…
Reference in New Issue