Skip to content

Commit

Permalink
dialog bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XinYiWorld committed Apr 19, 2017
1 parent 66c3a30 commit 05d3cd7
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,13 @@ public MaterialDialog createChoiceListMaterialDialog(String title,int itemRes,S
public MaterialDialog createProgressMaterialDialog(String title,String content){
progressMaterialDialogBuilder = new MaterialDialog.Builder(mContext);

MaterialDialog.Builder builder = progressMaterialDialogBuilder.title(title)
progressMaterialDialogBuilder.title(title)
.content(content)
.progress(true, 0)
.title(title)
.content(content);
progressMaterialDialog = builder.build();
if(!progressMaterialDialog.isShowing()){
progressMaterialDialog = progressMaterialDialogBuilder.build();
progressMaterialDialog.show();
}

return progressMaterialDialog;
}

Expand Down

0 comments on commit 05d3cd7

Please sign in to comment.