Allow dismissing discard draft dialog

This commit is contained in:
M66B 2018-10-23 17:52:52 +00:00
parent 9d53085249
commit 8ccc024854
1 changed files with 6 additions and 0 deletions

View File

@ -589,6 +589,12 @@ public class FragmentCompose extends FragmentEx {
.setNegativeButton(R.string.title_no, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}
})
.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialog) {
finish();
}
})