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

Commit f6d63f93 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixes a crash with KeyguardStatusView in tests

Fixes: 135104079
Change-Id: Idb0b745e50d72ddf23e98582b6a93f1dd56ec9e7
parent abb9bd35
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -414,10 +414,12 @@ public class KeyguardStatusView extends GridLayout implements
            int expanded = mOwnerInfo.getBottom() + mOwnerInfo.getPaddingBottom();
            int toRemove = (int) ((expanded - collapsed) * ratio);
            setBottom(getMeasuredHeight() - toRemove);
            if (mNotificationIcons != null) {
                // We're using scrolling in order not to overload the translation which is used
                // when appearing the icons
                mNotificationIcons.setScrollY(toRemove);
        } else {
            }
        } else if (mNotificationIcons != null){
            mNotificationIcons.setScrollY(0);
        }
    }