Merge "Fix #6750492: NPE in tablet status bar" into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9a8a28aa72
@@ -1658,6 +1658,7 @@ public class TabletStatusBar extends BaseStatusBar implements
|
||||
|
||||
@Override
|
||||
protected boolean isTopNotification(ViewGroup parent, NotificationData.Entry entry) {
|
||||
if (parent == null || entry == null) return false;
|
||||
return parent.indexOfChild(entry.row) == parent.getChildCount()-1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user