Prechádzať zdrojové kódy

Fixes. Release 0.1.0

Aidan Follestad 10 rokov pred
rodič
commit
637ac06211

+ 1 - 1
README.md

@@ -15,7 +15,7 @@ Easily reference the library in your Android projects using this dependency in y
 
 ```Groovy
 dependencies {
-    compile 'com.afollestad:material-dialogs:1.0.0'
+    compile 'com.afollestad:material-dialogs:0.1.0'
 }
 ```
 

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

@@ -139,6 +139,8 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener,
             icon.setVisibility(View.GONE);
         }
 
+        if ((negativeText != null || neutralText != null) && positiveText == null)
+            positiveText = getContext().getString(android.R.string.ok);
         if (items != null && items.length > 0)
             title = (TextView) view.findViewById(R.id.titleCustomView);
         else if (positiveText == null && customView == null)