Skip to content

Commit

Permalink
Merge pull request #60 from zheng17/master
Browse files Browse the repository at this point in the history
 Build.VERSION_CODES.Q to 29
  • Loading branch information
jasonmamy committed Mar 2, 2020
2 parents 70bae7b + 1367172 commit d4bbdc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public static String[] toStringArray(JSONArray array) {
public static boolean setNumberPickerTextColor(NumberPicker numberPicker, int color) {
float myTextSize = 10;
try{
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q){
if (android.os.Build.VERSION.SDK_INT >= 29){
// API >= 29
Method setColorMethod = numberPicker.getClass().getMethod("setTextColor", int.class);
setColorMethod.invoke(numberPicker, color);
Expand Down

0 comments on commit d4bbdc4

Please sign in to comment.