소스 검색

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