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:
1 parent
eb885026ed
commit
b133a52e86
2 files changed
+15
-14
No files matched your search
@@ -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