Merge "Fix cropping by allowing layerType to be reset regardless of height." into sc-dev

This commit is contained in:
Jeff DeCew
2021-06-10 20:41:43 +00:00
committed by Android (Google) Code Review

View File

@@ -488,7 +488,8 @@ public abstract class ExpandableView extends FrameLayout implements Dumpable {
@Override
public void setLayerType(int layerType, Paint paint) {
if (hasOverlappingRendering()) {
// Allow resetting the layerType to NONE regardless of overlappingRendering
if (layerType == LAYER_TYPE_NONE || hasOverlappingRendering()) {
super.setLayerType(layerType, paint);
}
}