mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Merge "Fix IllegalArgumentException for Float.NaN in ClipIconView."
This commit is contained in:
committed by
Android (Google) Code Review
commit
9acabb8199
@@ -161,6 +161,11 @@ public class ClipIconView extends View implements ClipPathView {
|
||||
float scaleY = rect.height() / minSize;
|
||||
float scale = Math.max(1f, Math.min(scaleX, scaleY));
|
||||
|
||||
if (Float.isNaN(scale)) {
|
||||
// Views are no longer laid out, do not update.
|
||||
return;
|
||||
}
|
||||
|
||||
update(rect, progress, shapeProgressStart, cornerRadius, isOpening, scale,
|
||||
minSize, lp, isVerticalBarLayout, dp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user