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

Commit b1fff5e5 authored by HyeonjungKim's avatar HyeonjungKim Committed by Hyeonjung Kim
Browse files

Check whether view is clipping only if pin dots are more than 2

Bug: 298111225
Test: Append a pin while the first pin is deleting
Change-Id: I914d393c1aa82a59f9cdd942e8a893c50194ca4b
parent d8f9519d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ public class PinShapeNonHintingView extends LinearLayout implements PinShapeInpu
    @Override
    protected void onLayout(boolean changed, int l, int t, int r, int b) {
        super.onLayout(changed, l, t, r, b);
        if (getChildCount() > 0) {
        if (getChildCount() > 2) {
            View firstChild = getChildAt(0);
            boolean isVisible = firstChild.getLocalVisibleRect(mFirstChildVisibleRect);
            boolean clipped = mFirstChildVisibleRect.left > 0