Browse Source

Release 0.3.5

Aidan Follestad 10 years ago
parent
commit
5f70524562

+ 6 - 2
README.md

@@ -6,9 +6,13 @@ The code you see below is also found in the sample project. You can download a A
 
 ### What's New
 
+###### Version 0.3.5
+
+> 1. Bug fixes
+
 ###### Version 0.3.3 – 0.3.4
 
-> 1. Crash fix when updating list items after they had previosly been set.
+> 1. Crash fix when updating list items after they had previously been set.
 > 2. The ability to set the content color when constructing a dialog builder.
 
 ###### Version 0.3.2
@@ -40,7 +44,7 @@ Easily reference the library in your Android projects using this dependency in y
 
 ```Groovy
 dependencies {
-    compile 'com.afollestad:material-dialogs:0.3.4'
+    compile 'com.afollestad:material-dialogs:0.3.5'
 }
 ```
 

+ 2 - 2
library/build.gradle

@@ -9,7 +9,7 @@ android {
         minSdkVersion 8
         targetSdkVersion 21
         versionCode 1
-        versionName "0.3.4"
+        versionName "0.3.5"
     }
     buildTypes {
         release {
@@ -32,7 +32,7 @@ publish {
     userOrg = 'drummer-aidan'
     groupId = 'com.afollestad'
     artifactId = 'material-dialogs'
-    version = '0.3.4'
+    version = '0.3.5'
     description = 'A library for implementing Material design styled dialogs across all versions of Android.'
     website = 'https://github.com/afollestad/material-dialogs'
     issueTracker = "${website}/issues"

+ 5 - 1
library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

@@ -516,7 +516,11 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener,
     }
 
     private void sendSingleChoiceCallback(View v) {
-        listCallbackSingle.onSelection(this, v, selectedIndex, items[selectedIndex]);
+        CharSequence text = null;
+        if (selectedIndex >= 0) {
+            text = items[selectedIndex];
+        }
+        listCallbackSingle.onSelection(this, v, selectedIndex, text);
     }
 
     private void sendMultichoiceCallback() {

+ 2 - 2
sample/build.gradle

@@ -8,8 +8,8 @@ android {
         applicationId "com.afollestad.materialdialogssample"
         minSdkVersion 11
         targetSdkVersion 21
-        versionCode 41
-        versionName "0.3.4"
+        versionCode 42
+        versionName "0.3.5"
     }
     buildTypes {
 //        release {

BIN
sample/sample.apk