Merge "Fix #6750492: NPE in tablet status bar" into jb-dev

This commit is contained in:
Daniel Sandler
2012-06-28 11:02:57 -07:00
committed by Android (Google) Code Review

View File

@@ -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;
}