mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Fix app open/close animation in landscape.
When we refactored ClipIconView, we never init mIsVerticalBarLayout. Instead we pass it in along with the rest of the info from FloatingIconView. Bug: 155039118 Change-Id: Iff93105c512a8e6478dc49d8ab9100fd129af48c
This commit is contained in:
@@ -161,7 +161,7 @@ public class FloatingIconView extends FrameLayout implements
|
||||
float scale = Math.max(1f, Math.min(scaleX, scaleY));
|
||||
|
||||
mClipIconView.update(rect, progress, shapeProgressStart, cornerRadius, isOpening, scale,
|
||||
minSize, lp);
|
||||
minSize, lp, mIsVerticalBarLayout);
|
||||
|
||||
setPivotX(0);
|
||||
setPivotY(0);
|
||||
@@ -335,7 +335,7 @@ public class FloatingIconView extends FrameLayout implements
|
||||
final InsettableFrameLayout.LayoutParams lp =
|
||||
(InsettableFrameLayout.LayoutParams) getLayoutParams();
|
||||
mBadge = badge;
|
||||
mClipIconView.setIcon(drawable, iconOffset, lp, mIsOpening);
|
||||
mClipIconView.setIcon(drawable, iconOffset, lp, mIsOpening, mIsVerticalBarLayout);
|
||||
if (drawable instanceof AdaptiveIconDrawable) {
|
||||
final int originalHeight = lp.height;
|
||||
final int originalWidth = lp.width;
|
||||
|
||||
Reference in New Issue
Block a user