mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Prevent crash
This commit is contained in:
parent
a224aa54c6
commit
4bb611ec60
1 changed files with 16 additions and 15 deletions
|
@ -514,6 +514,7 @@ public class FragmentCompose extends FragmentEx {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleExit() {
|
private void handleExit() {
|
||||||
|
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
||||||
new DialogBuilderLifecycle(getContext(), getViewLifecycleOwner())
|
new DialogBuilderLifecycle(getContext(), getViewLifecycleOwner())
|
||||||
.setMessage(R.string.title_ask_delete)
|
.setMessage(R.string.title_ask_delete)
|
||||||
.setPositiveButton(R.string.title_yes, new DialogInterface.OnClickListener() {
|
.setPositiveButton(R.string.title_yes, new DialogInterface.OnClickListener() {
|
||||||
|
|
Loading…
Reference in a new issue