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

Commit 207b4c09 authored by Hyeonjung Kim's avatar Hyeonjung Kim Committed by Android (Google) Code Review
Browse files

Merge "Check whether view is clipping only if pin dots are more than 2" into main

parents 7e97c4a7 b1fff5e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -61,7 +61,7 @@ public class PinShapeNonHintingView extends LinearLayout implements PinShapeInpu
    @Override
    @Override
    protected void onLayout(boolean changed, int l, int t, int r, int b) {
    protected void onLayout(boolean changed, int l, int t, int r, int b) {
        super.onLayout(changed, l, t, r, b);
        super.onLayout(changed, l, t, r, b);
        if (getChildCount() > 0) {
        if (getChildCount() > 2) {
            View firstChild = getChildAt(0);
            View firstChild = getChildAt(0);
            boolean isVisible = firstChild.getLocalVisibleRect(mFirstChildVisibleRect);
            boolean isVisible = firstChild.getLocalVisibleRect(mFirstChildVisibleRect);
            boolean clipped = mFirstChildVisibleRect.left > 0
            boolean clipped = mFirstChildVisibleRect.left > 0