فهرست منبع

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