Ver código fonte

Removed SeekBar tint method

Aidan Follestad 10 anos atrás
pai
commit
557613d206

+ 0 - 13
library/src/main/java/com/afollestad/materialdialogs/internal/MDTintHelper.java

@@ -67,19 +67,6 @@ public class MDTintHelper {
         }
     }
 
-    public static void setTint(SeekBar seekBar, int color) {
-        ColorStateList s1 = ColorStateList.valueOf(color);
-        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
-            seekBar.setThumbTintList(s1);
-            seekBar.setProgressTintList(s1);
-        } else {
-            seekBar.getProgressDrawable().setColorFilter(color, PorterDuff.Mode.MULTIPLY);
-            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN)
-                seekBar.getThumb().setColorFilter(color, PorterDuff.Mode.MULTIPLY);
-
-        }
-    }
-
     public static void setTint(CheckBox box, int color) {
         ColorStateList sl = new ColorStateList(new int[][]{
                 new int[]{-android.R.attr.state_checked},