Aidan Follestad 10 anos atrás
pai
commit
6617b83d75

+ 4 - 2
library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

@@ -281,8 +281,10 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener {
 
         if (builder.theme == Theme.LIGHT && Build.VERSION.SDK_INT <= Build.VERSION_CODES.GINGERBREAD_MR1) {
             setInverseBackgroundForced(true);
-            title.setTextColor(Color.BLACK);
-            content.setTextColor(Color.BLACK);
+            if (builder.titleColor == -1)
+                title.setTextColor(Color.BLACK);
+            if (builder.contentColor == -1)
+                content.setTextColor(Color.BLACK);
         }
     }