Răsfoiți Sursa

README fixes.

Aidan Follestad 10 ani în urmă
părinte
comite
1cc70adc07
1 a modificat fișierele cu 3 adăugiri și 5 ștergeri
  1. 3 5
      README.md

+ 3 - 5
README.md

@@ -257,17 +257,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.
-                 * update: Not anymore!
-                 * return true;
                  **/
-                 
+                 return true;
             }
         })
         .positiveText(R.string.choose)