Merge "Fixes a crash with KeyguardStatusView in tests" into qt-r1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ffb7b7feff
@@ -414,10 +414,12 @@ public class KeyguardStatusView extends GridLayout implements
|
|||||||
int expanded = mOwnerInfo.getBottom() + mOwnerInfo.getPaddingBottom();
|
int expanded = mOwnerInfo.getBottom() + mOwnerInfo.getPaddingBottom();
|
||||||
int toRemove = (int) ((expanded - collapsed) * ratio);
|
int toRemove = (int) ((expanded - collapsed) * ratio);
|
||||||
setBottom(getMeasuredHeight() - toRemove);
|
setBottom(getMeasuredHeight() - toRemove);
|
||||||
|
if (mNotificationIcons != null) {
|
||||||
// We're using scrolling in order not to overload the translation which is used
|
// We're using scrolling in order not to overload the translation which is used
|
||||||
// when appearing the icons
|
// when appearing the icons
|
||||||
mNotificationIcons.setScrollY(toRemove);
|
mNotificationIcons.setScrollY(toRemove);
|
||||||
} else {
|
}
|
||||||
|
} else if (mNotificationIcons != null){
|
||||||
mNotificationIcons.setScrollY(0);
|
mNotificationIcons.setScrollY(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user