mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Cancel orphan toasts
This commit is contained in:
@@ -498,7 +498,10 @@ public class FragmentContacts extends FragmentBase {
|
||||
|
||||
@Override
|
||||
protected void onDestroyed(Bundle args) {
|
||||
toast = null;
|
||||
if (toast != null) {
|
||||
toast.cancel();
|
||||
toast = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -597,7 +600,10 @@ public class FragmentContacts extends FragmentBase {
|
||||
|
||||
@Override
|
||||
protected void onDestroyed(Bundle args) {
|
||||
toast = null;
|
||||
if (toast != null) {
|
||||
toast.cancel();
|
||||
toast = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user