Explorar el Código

#303 - Stock AlertDialog calls the multi choice item clicked callback every time one is clicked. Therefore, make the AlertDialogWrapper work in the same way.

Andrew Lord hace 10 años
padre
commit
b9c350a151

+ 1 - 0
library/src/main/java/com/afollestad/materialdialogs/AlertDialogWrapper.java

@@ -233,6 +233,7 @@ public class AlertDialogWrapper {
                 selectedIndicesArr = selectedIndices.toArray(new Integer[selectedIndices.size()]);
             }
 
+            builder.alwaysCallMultiChoiceCallback();
             builder.itemsCallbackMultiChoice(selectedIndicesArr, new MaterialDialog.ListCallbackMulti() {
                 @Override
                 public void onSelection(MaterialDialog dialog, Integer[] which, CharSequence[] text) {