pubiqq 74b7706de9 [ShapeableImageView] Don't change layer type when view is detached from the window
When the exit transition starts, the layer type is set to LAYER_TYPE_NONE (inside onDetachedFromWindow). In this case, clearPaint (Paint with Xfermode = PorterDuff.Mode.DST_OUT) stops working correctly.
The patch just deletes the layer type setup from onDetachedFromWindow, leaving the layer type set to LAYER_TYPE_HARDWARE.

Resolves https://github.com/material-components/material-components-android/issues/2703
Resolves https://github.com/material-components/material-components-android/pull/2792

GIT_ORIGIN_REV_ID=b05230b40529251b8b16cc02f1cfd64f3801c1d8
PiperOrigin-RevId: 459308833
2022-07-06 13:15:46 -07:00
..