diff --git a/library/src/main/java/com/mikepenz/materialize/util/UIUtils.java b/library/src/main/java/com/mikepenz/materialize/util/UIUtils.java
index <HASH>..<HASH> 100644
--- a/library/src/main/java/com/mikepenz/materialize/util/UIUtils.java
+++ b/library/src/main/java/com/mikepenz/materialize/util/UIUtils.java
@@ -39,7 +39,7 @@ public class UIUtils {
     public static int getThemeColor(Context ctx, @AttrRes int attr) {
         TypedValue tv = new TypedValue();
         if (ctx.getTheme().resolveAttribute(attr, tv, true)) {
-            return ResourcesCompat.getColor(ctx.getResources(), tv.resourceId, ctx.getTheme());
+            return tv.data;
         }
         return 0;
     }
* fix crash if trying to resolve a simple color from theme
  * FIX <URL>