AlertDialog setOnDismissListener not working

前端 未结 6 1406
孤独总比滥情好
孤独总比滥情好 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:45

    OK...I figured it out myself.

    I had to implement DialogInterface.OnCancelListener and add the onCancel() method. It worked!

提交回复
热议问题