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

Commit 28217d1c authored by Matt Pietal's avatar Matt Pietal
Browse files

Keyguard SIM PIN: Fix height

Some views within the KeyguardSecurityViewFlipper limit their height,
while others do not. When a view is marked as GONE, as when the
ViewFlipper changes the focused child, disregard those views from the
custom max height measurement as not to interfere with normal measurement.

Fixes: 178412096
Test: use password or pattern bouncer, go back to aod/ls, reinsert
locked SIM

Change-Id: I06047bcd8fb7c11eb0bac272f28147e08b18988d
parent 04487293
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -128,6 +128,8 @@ public class KeyguardSecurityViewFlipper extends ViewFlipper {
        final int count = getChildCount();
        for (int i = 0; i < count; i++) {
            final View child = getChildAt(i);
            if (child.getVisibility() != View.VISIBLE) continue;

            final LayoutParams lp = (LayoutParams) child.getLayoutParams();

            if (lp.maxWidth > 0 && lp.maxWidth < maxWidth) {