Merge "Fixes a crash with KeyguardStatusView in tests" into qt-r1-dev
am: ffb7b7feff
Change-Id: Ic33597abd76a9d3250022223f72ced6871197ad1
This commit is contained in:
@@ -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);
|
||||
// We're using scrolling in order not to overload the translation which is used
|
||||
// when appearing the icons
|
||||
mNotificationIcons.setScrollY(toRemove);
|
||||
} else {
|
||||
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 if (mNotificationIcons != null){
|
||||
mNotificationIcons.setScrollY(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user