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

Commit ec2d6a15 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Fixes a crash with KeyguardStatusView in tests" into qt-r1-dev

am: ffb7b7fe

Change-Id: Id517b03e61f0950993ceeb8fa49cb5a325e864ba
parents e2e204c1 ffb7b7fe
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);
        }
    }