Browse Source

Release 0.6.5.0. See the release page for some important information.

Aidan Follestad 10 years ago
parent
commit
aef1930c59
4 changed files with 20 additions and 9 deletions
  1. 16 5
      README.md
  2. 2 2
      library/build.gradle
  3. 2 2
      sample/build.gradle
  4. BIN
      sample/sample.apk

+ 16 - 5
README.md

@@ -23,7 +23,7 @@ Easily reference the library in your Android projects using this dependency in y
 
 ```Gradle
 dependencies {
-    compile 'com.afollestad:material-dialogs:0.6.4.7'
+    compile 'com.afollestad:material-dialogs:0.6.5.0'
 }
 ```
 
@@ -217,9 +217,14 @@ display radio buttons next to list items.
 new MaterialDialog.Builder(this)
         .title(R.string.title)
         .items(R.array.items)
-        .itemsCallbackSingleChoice(-1, new MaterialDialog.ListCallback() {
+        .itemsCallbackSingleChoice(-1, new MaterialDialog.ListCallbackSingleChoice() {
             @Override
-            public void onSelection(MaterialDialog dialog, View view, int which, CharSequence text) {
+            public boolean onSelection(MaterialDialog dialog, View view, int which, CharSequence text) {
+                /**
+                 * If you use alwaysCallSingleChoiceCallback(), which is discussed below,
+                 * returning false here won't allow the newly selected radio button to actually be selected.
+                 **/
+                return true;
             }
         })
         .positiveText(R.string.choose)
@@ -249,9 +254,15 @@ display check boxes next to list items, and the callback can return multiple sel
 new MaterialDialog.Builder(this)
         .title(R.string.title)
         .items(R.array.items)
-        .itemsCallbackMultiChoice(null, new MaterialDialog.ListCallbackMulti() {
+        .itemsCallbackMultiChoice(null, new MaterialDialog.ListCallbackMultiChoice() {
             @Override
-            public void onSelection(MaterialDialog dialog, Integer[] which, CharSequence[] text) {
+            public boolean onSelection(MaterialDialog dialog, Integer[] which, CharSequence[] text) {
+                /**
+                 * If you use alwaysCallMultiChoiceCallback(), which is discussed below,
+                 * returning false here won't allow the newly selected check box to actually be selected.
+                 * See the limited multi choice dialog example in the sample project for details.
+                 **/
+                 return true;
             }
         })
         .positiveText(R.string.choose)

+ 2 - 2
library/build.gradle

@@ -9,7 +9,7 @@ android {
         minSdkVersion 8
         targetSdkVersion 22
         versionCode 1
-        versionName "0.6.4.7"
+        versionName "0.6.5.0"
     }
     lintOptions {
         abortOnError false
@@ -27,7 +27,7 @@ publish {
     userOrg = 'drummer-aidan'
     groupId = 'com.afollestad'
     artifactId = 'material-dialogs'
-    version = '0.6.4.7'
+    version = '0.6.5.0'
     description = 'A library for implementing Material design styled dialogs across all versions of Android.'
     website = 'https://github.com/afollestad/material-dialogs'
     issueTracker = "${website}/issues"

+ 2 - 2
sample/build.gradle

@@ -8,8 +8,8 @@ android {
         applicationId "com.afollestad.materialdialogssample"
         minSdkVersion 9
         targetSdkVersion 22
-        versionCode 90
-        versionName "0.6.4.7"
+        versionCode 91
+        versionName "0.6.5.0"
     }
     lintOptions {
         abortOnError false

BIN
sample/sample.apk