Browse Source

fix: ThemeUtils.java:257: AppCompatCheckBox.setSupportButtonTintList can only be called from within the same library group (groupId=com.android.support)

tobiaskaminsky 7 years ago
parent
commit
12fd76de5b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/owncloud/android/utils/ThemeUtils.java

+ 2 - 1
src/main/java/com/owncloud/android/utils/ThemeUtils.java

@@ -37,6 +37,7 @@ import android.support.v4.content.ContextCompat;
 import android.support.v4.content.res.ResourcesCompat;
 import android.support.v4.graphics.ColorUtils;
 import android.support.v4.graphics.drawable.DrawableCompat;
+import android.support.v4.widget.CompoundButtonCompat;
 import android.support.v7.app.ActionBar;
 import android.support.v7.widget.AppCompatCheckBox;
 import android.support.v7.widget.SwitchCompat;
@@ -254,7 +255,7 @@ public class ThemeUtils {
     }
 
     public static void tintCheckbox(AppCompatCheckBox checkBox, int color) {
-        checkBox.setSupportButtonTintList(new ColorStateList(
+        CompoundButtonCompat.setButtonTintList(checkBox, new ColorStateList(
                 new int[][]{
                         new int[]{-android.R.attr.state_checked},
                         new int[]{android.R.attr.state_checked},