mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Remove flags ENABLE_TWO_PANEL_HOME FOLDABLE_WORKSPACE_REORDE and FOLDABLE_SINGLE_PAGE
Fix: 270392643 Fix: 270395070 Fix: 270395274 Test: atest FoldableItemsIntegrity Change-Id: I2d7af312da8aeb070588ca94a2a256d2def65eeb
This commit is contained in:
@@ -360,37 +360,6 @@ public class AppWidgetResizeFrame extends AbstractFloatingView implements View.O
|
||||
lp.y = sTmpRect.top;
|
||||
}
|
||||
|
||||
// Handle invalid resize across CellLayouts in the two panel UI.
|
||||
if (mCellLayout.getParent() instanceof Workspace) {
|
||||
Workspace<?> workspace = (Workspace<?>) mCellLayout.getParent();
|
||||
CellLayout pairedCellLayout = workspace.getScreenPair(mCellLayout);
|
||||
if (pairedCellLayout != null) {
|
||||
Rect focusedCellLayoutBound = sTmpRect;
|
||||
mDragLayerRelativeCoordinateHelper.viewToRect(mCellLayout, focusedCellLayoutBound);
|
||||
Rect resizeFrameBound = sTmpRect2;
|
||||
findViewById(R.id.widget_resize_frame).getGlobalVisibleRect(resizeFrameBound);
|
||||
float progress = 1f;
|
||||
if (workspace.indexOfChild(pairedCellLayout) < workspace.indexOfChild(mCellLayout)
|
||||
&& mDeltaX < 0
|
||||
&& resizeFrameBound.left < focusedCellLayoutBound.left) {
|
||||
// Resize from right to left.
|
||||
progress = (mDragAcrossTwoPanelOpacityMargin + mDeltaX)
|
||||
/ mDragAcrossTwoPanelOpacityMargin;
|
||||
} else if (workspace.indexOfChild(pairedCellLayout)
|
||||
> workspace.indexOfChild(mCellLayout)
|
||||
&& mDeltaX > 0
|
||||
&& resizeFrameBound.right > focusedCellLayoutBound.right) {
|
||||
// Resize from left to right.
|
||||
progress = (mDragAcrossTwoPanelOpacityMargin - mDeltaX)
|
||||
/ mDragAcrossTwoPanelOpacityMargin;
|
||||
}
|
||||
float alpha = Math.max(MIN_OPACITY_FOR_CELL_LAYOUT_DURING_INVALID_RESIZE, progress);
|
||||
float springLoadedProgress = Math.min(1f, 1f - progress);
|
||||
updateInvalidResizeEffect(mCellLayout, pairedCellLayout, alpha,
|
||||
springLoadedProgress);
|
||||
}
|
||||
}
|
||||
|
||||
requestLayout();
|
||||
}
|
||||
|
||||
@@ -547,13 +516,6 @@ public class AppWidgetResizeFrame extends AbstractFloatingView implements View.O
|
||||
}
|
||||
|
||||
final DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams();
|
||||
final CellLayout pairedCellLayout;
|
||||
if (mCellLayout.getParent() instanceof Workspace) {
|
||||
Workspace<?> workspace = (Workspace<?>) mCellLayout.getParent();
|
||||
pairedCellLayout = workspace.getScreenPair(mCellLayout);
|
||||
} else {
|
||||
pairedCellLayout = null;
|
||||
}
|
||||
if (!animate) {
|
||||
lp.width = newWidth;
|
||||
lp.height = newHeight;
|
||||
@@ -562,10 +524,6 @@ public class AppWidgetResizeFrame extends AbstractFloatingView implements View.O
|
||||
for (int i = 0; i < HANDLE_COUNT; i++) {
|
||||
mDragHandles[i].setAlpha(1f);
|
||||
}
|
||||
if (pairedCellLayout != null) {
|
||||
updateInvalidResizeEffect(mCellLayout, pairedCellLayout, /* alpha= */ 1f,
|
||||
/* springLoadedProgress= */ 0f);
|
||||
}
|
||||
requestLayout();
|
||||
} else {
|
||||
ObjectAnimator oa = ObjectAnimator.ofPropertyValuesHolder(lp,
|
||||
@@ -581,10 +539,6 @@ public class AppWidgetResizeFrame extends AbstractFloatingView implements View.O
|
||||
set.play(mFirstFrameAnimatorHelper.addTo(
|
||||
ObjectAnimator.ofFloat(mDragHandles[i], ALPHA, 1f)));
|
||||
}
|
||||
if (pairedCellLayout != null) {
|
||||
updateInvalidResizeEffect(mCellLayout, pairedCellLayout, /* alpha= */ 1f,
|
||||
/* springLoadedProgress= */ 0f, /* animatorSet= */ set);
|
||||
}
|
||||
set.setDuration(SNAP_DURATION);
|
||||
set.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user