Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d69657b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix rounding bug in IconTest" into main

parents 6604f36e 54eb6701
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -475,8 +475,8 @@ public class IconTest {
        final Icon ic = Icon.createWithBitmap(bm);
        final Drawable drawable = ic.loadDrawable(mContext);

        assertThat(drawable.getIntrinsicWidth()).isEqualTo(maxWidth);
        assertThat(drawable.getIntrinsicHeight()).isEqualTo(maxHeight);
        assertThat(Math.abs(drawable.getIntrinsicWidth() - maxWidth)).isLessThan(2);
        assertThat(Math.abs(drawable.getIntrinsicHeight() - maxHeight)).isLessThan(2);
    }

    @Test