mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Merge "Removed page spacing scaling" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b6dd7fb07f
@@ -362,7 +362,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
private final PointF mTempPointF = new PointF();
|
||||
private final float[] mTempFloat = new float[1];
|
||||
private final List<OnScrollChangedListener> mScrollListeners = new ArrayList<>();
|
||||
private float mFullscreenScale;
|
||||
|
||||
// The threshold at which we update the SystemUI flags when animating from the task into the app
|
||||
public static final float UPDATE_SYSUI_FLAGS_THRESHOLD = 0.85f;
|
||||
@@ -1329,8 +1328,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
// Compensate space caused by TaskView scaling.
|
||||
float widthDiff =
|
||||
taskView.getLayoutParams().width * (1 - taskView.getFullscreenScale());
|
||||
// Compensate page spacing widening caused by RecentsView scaling.
|
||||
widthDiff += mPageSpacing * (1 - 1 / mFullscreenScale);
|
||||
accumulatedTranslationX += mIsRtl ? widthDiff : -widthDiff;
|
||||
}
|
||||
|
||||
@@ -2701,8 +2698,8 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
|
||||
// Update the pivots such that when the task is scaled, it fills the full page
|
||||
getTaskSize(mTempRect);
|
||||
mFullscreenScale = getPagedViewOrientedState().getFullScreenScaleAndPivot(
|
||||
mTempRect, mActivity.getDeviceProfile(), mTempPointF);
|
||||
getPagedViewOrientedState().getFullScreenScaleAndPivot(mTempRect,
|
||||
mActivity.getDeviceProfile(), mTempPointF);
|
||||
setPivotX(mTempPointF.x);
|
||||
setPivotY(mTempPointF.y);
|
||||
setTaskModalness(mTaskModalness);
|
||||
|
||||
Reference in New Issue
Block a user