private boolean isMaxSizeInitialized(ExpandableView child) { Log.d(TAG, "isMaxSizeInitialized: "); if (child instanceof ExpandableNotificationRow) { ExpandableNotificationRow row = (ExpandableNotificationRow) child; return row.isMaxExpandHeightInitialized(); } return child == null || child.getWidth() != 0; }