Skip to content

Commit 2005dab

Browse files
committed
fix: marshmallow fix
1 parent db7c8ea commit 2005dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class ViewWithElevationAndRipple extends View {
199199
[rippleColorProperty.setNative](color: Color) {
200200
const rippleColor = getRippleColor(color);
201201
const nativeViewProtected = this.nativeViewProtected;
202-
if (this instanceof Button) {
202+
if (this instanceof Button && isPostMarshmallow()) {
203203
const foreground = (nativeViewProtected as android.widget.Button).getForeground();
204204
if (foreground instanceof android.graphics.drawable.RippleDrawable) {
205205
foreground.setColor(getColorStateList(rippleColor));

0 commit comments

Comments
 (0)