Skip to content

Commit 4bf2cb0

Browse files
author
farfromrefug
committed
chore(android): little refactor to prevent unecessary test
1 parent 5da476d commit 4bf2cb0

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
@@ -237,8 +237,8 @@ export function overrideViewBase() {
237237
[rippleColorProperty.setNative](color: Color) {
238238
const rippleColor = getRippleColor(color, this.rippleColorAlpha);
239239
const nativeViewProtected = this.nativeViewProtected;
240-
const RippleDrawable = android.graphics.drawable.RippleDrawable;
241240
if (this instanceof Button && isPostMarshmallow) {
241+
const RippleDrawable = android.graphics.drawable.RippleDrawable;
242242
const foreground = (nativeViewProtected as android.widget.Button).getForeground();
243243
if (foreground instanceof RippleDrawable) {
244244
foreground.setColor(getColorStateList(rippleColor));

0 commit comments

Comments
 (0)