am 99aa13ec: Merge "Allow null child view when checking whether divider should draw" into mnc-dev

* commit '99aa13ec108e9cbb62984d79191548990809f95a':
  Allow null child view when checking whether divider should draw
This commit is contained in:
Doris Liu
2015-06-30 21:49:14 +00:00
committed by Android Git Automerger

View File

@@ -659,7 +659,8 @@ public class LinearLayout extends ViewGroup {
*/
private boolean allViewsAreGoneBefore(int childIndex) {
for (int i = childIndex - 1; i >= 0; i--) {
if (getVirtualChildAt(i).getVisibility() != GONE) {
View child = getVirtualChildAt(i);
if (child != null && child.getVisibility() != GONE) {
return false;
}
}