Skip to content

Commit f83947c

Browse files
committed
chore: updated android native
1 parent fa62eaf commit f83947c

File tree

1 file changed

+1
-2
lines changed
  • packages/core/platforms/android/java/com/nativescript/material/core

1 file changed

+1
-2
lines changed

packages/core/platforms/android/java/com/nativescript/material/core/Utils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ public static void createStateListAnimator(Context context, View view, float ele
4343
view.setStateListAnimator(stateListAnimator);
4444
}
4545

46-
public static ColorStateList getEnabledColorStateList(int color, String variant) {
46+
public static ColorStateList getEnabledColorStateList(int color, int disabledColor) {
4747
int[][] states = new int[][] { new int[] { -android.R.attr.state_enabled }, // enabled
4848
android.util.StateSet.NOTHING, // disabled
4949
};
50-
int disabledColor = (variant == "text" || variant == "outline") ? 0 : Color.argb(0.117f, 0f, 0f, 0f);
5150
int[] colors = new int[] { disabledColor, color };
5251
return new android.content.res.ColorStateList(states, colors);
5352
}

0 commit comments

Comments
 (0)