Merge "Only draw app below launcher for TaskViewSimulator at swipe up or in Overview" into ub-launcher3-master
This commit is contained in:
commit
73f0c3698f
|
@ -79,6 +79,7 @@ public abstract class SwipeUpAnimationLogic {
|
|||
mTaskViewSimulator.setLayoutRotation(
|
||||
mDeviceState.getRotationTouchHelper().getCurrentActiveRotation(),
|
||||
mDeviceState.getRotationTouchHelper().getDisplayRotation());
|
||||
mTaskViewSimulator.setDrawsBelowRecents(true);
|
||||
}
|
||||
|
||||
protected void initTransitionEndpoints(DeviceProfile dp) {
|
||||
|
|
|
@ -73,6 +73,7 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy {
|
|||
|
||||
private final Rect mTaskRect = new Rect();
|
||||
private float mOffsetY;
|
||||
private boolean mDrawsBelowRecents;
|
||||
private final PointF mPivot = new PointF();
|
||||
private DeviceProfile mDp;
|
||||
|
||||
|
@ -181,6 +182,10 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy {
|
|||
mOffsetY = offsetY;
|
||||
}
|
||||
|
||||
public void setDrawsBelowRecents(boolean drawsBelowRecents) {
|
||||
mDrawsBelowRecents = drawsBelowRecents;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds animation for all the components corresponding to transition from an app to overview.
|
||||
*/
|
||||
|
@ -320,7 +325,8 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy {
|
|||
.withWindowCrop(mTmpCropRect)
|
||||
.withCornerRadius(getCurrentCornerRadius());
|
||||
|
||||
if (ENABLE_QUICKSTEP_LIVE_TILE.get() && params.getRecentsSurface() != null) {
|
||||
if (ENABLE_QUICKSTEP_LIVE_TILE.get() && mDrawsBelowRecents
|
||||
&& params.getRecentsSurface() != null) {
|
||||
builder.withRelativeLayerTo(params.getRecentsSurface(), Integer.MIN_VALUE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -475,6 +475,7 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
|
|||
mLiveTileTaskViewSimulator.setLayoutRotation(getPagedViewOrientedState().getTouchRotation(),
|
||||
getPagedViewOrientedState().getDisplayRotation());
|
||||
mLiveTileTaskViewSimulator.setRecentsRotation(rotation);
|
||||
mLiveTileTaskViewSimulator.setDrawsBelowRecents(true);
|
||||
}
|
||||
|
||||
public OverScroller getScroller() {
|
||||
|
|
Loading…
Reference in New Issue