Expandable CardView Empty
This commit is contained in:
@@ -134,7 +134,7 @@ public class ExpandableCardView extends CardView {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onLayout(boolean changed, int l, int t, int r, int b) {
|
protected void onLayout(boolean changed, int l, int t, int r, int b) {
|
||||||
if (outerView != null || innerView != null) {
|
if (outerView == null || innerView == null) {
|
||||||
log.w("This should not happen (onLayout)! Inner views are null!", innerView, outerView);
|
log.w("This should not happen (onLayout)! Inner views are null!", innerView, outerView);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -161,7 +161,7 @@ public class ExpandableCardView extends CardView {
|
|||||||
setMeasuredDimension(reconcileSize(10, widthMeasureSpec), reconcileSize(10, heightMeasureSpec));
|
setMeasuredDimension(reconcileSize(10, widthMeasureSpec), reconcileSize(10, heightMeasureSpec));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (outerView != null || innerView != null) {
|
if (outerView == null || innerView == null) {
|
||||||
log.w("This should not happen (onMeasure)! Inner views are null!", innerView, outerView);
|
log.w("This should not happen (onMeasure)! Inner views are null!", innerView, outerView);
|
||||||
setMeasuredDimension(reconcileSize(10, widthMeasureSpec), reconcileSize(10, heightMeasureSpec));
|
setMeasuredDimension(reconcileSize(10, widthMeasureSpec), reconcileSize(10, heightMeasureSpec));
|
||||||
return;
|
return;
|
||||||
@@ -375,4 +375,3 @@ public class ExpandableCardView extends CardView {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user