Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46961cd9 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Fix cropping by allowing layerType to be reset regardless of height.

Fixes: 187948073
Test: Open a reply, begin collapsing the shade, then let spring back, notice that bottom of notification is longer truncated.
Change-Id: I126dee8f1e7b422d6a43d49c1a8c4e052e9f009b
parent 6c9c6cb6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
        }
    }