Merge "Reset the task's curve scale prior to calculating the recents view scale" into ub-launcher3-qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
308f356eb4
+3
@@ -308,7 +308,10 @@ public final class LauncherActivityControllerHelper implements ActivityControlHe
|
||||
SCALE_PROPERTY.set(recentsView, targetRvScale);
|
||||
recentsView.setTranslationY(0);
|
||||
ClipAnimationHelper clipHelper = new ClipAnimationHelper(launcher);
|
||||
float tmpCurveScale = v.getCurveScale();
|
||||
v.setCurveScale(1f);
|
||||
clipHelper.fromTaskThumbnailView(v.getThumbnail(), (RecentsView) v.getParent(), null);
|
||||
v.setCurveScale(tmpCurveScale);
|
||||
SCALE_PROPERTY.set(recentsView, prevRvScale);
|
||||
recentsView.setTranslationY(prevRvTransY);
|
||||
|
||||
|
||||
@@ -492,7 +492,7 @@ public class TaskView extends FrameLayout implements PageCallbacks, Reusable {
|
||||
return 1 - curveInterpolation * EDGE_SCALE_DOWN_FACTOR;
|
||||
}
|
||||
|
||||
private void setCurveScale(float curveScale) {
|
||||
public void setCurveScale(float curveScale) {
|
||||
mCurveScale = curveScale;
|
||||
onScaleChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user