Allow dismissing discard draft dialog

pull/146/head
M66B 6 years ago
parent 9d53085249
commit 8ccc024854

@ -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();
}
})

Loading…
Cancel
Save