We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db7c8ea commit 2005dabCopy full SHA for 2005dab
src/core/index.android.ts
@@ -199,7 +199,7 @@ class ViewWithElevationAndRipple extends View {
199
[rippleColorProperty.setNative](color: Color) {
200
const rippleColor = getRippleColor(color);
201
const nativeViewProtected = this.nativeViewProtected;
202
- if (this instanceof Button) {
+ if (this instanceof Button && isPostMarshmallow()) {
203
const foreground = (nativeViewProtected as android.widget.Button).getForeground();
204
if (foreground instanceof android.graphics.drawable.RippleDrawable) {
205
foreground.setColor(getColorStateList(rippleColor));
0 commit comments