AlertDialog setOnDismissListener not working

前端 未结 6 1377
孤独总比滥情好
孤独总比滥情好 2021-02-19 11:44

My activity opens a dialog. When it closes I need the function ReloadTable() to be executed. So I am trying to use setOnDismissListener but its not get

6条回答
  •  梦谈多话
    2021-02-19 12:46

    In this case you should use alertDialog.setOnCancelListener(listener),and alertDialog.setOnDismissListener works with dismissDialog(id).

提交回复
热议问题