Merge "Allow null child view when checking whether divider should draw" into mnc-dev
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user