瀏覽代碼

#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 10 年之前
父節點
當前提交
b9c350a151
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      library/src/main/java/com/afollestad/materialdialogs/AlertDialogWrapper.java

+ 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) {