mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 02:28:18 +00:00
Cancel orphan toasts
This commit is contained in:
parent
bfaad8333e
commit
fd1013b6ad
5 changed files with 28 additions and 7 deletions
|
@ -679,7 +679,10 @@ public class ActivityEML extends ActivityBase {
|
|||
|
||||
@Override
|
||||
protected void onDestroyed(Bundle args) {
|
||||
toast = null;
|
||||
if (toast != null) {
|
||||
toast.cancel();
|
||||
toast = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -791,7 +791,10 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
|||
|
||||
@Override
|
||||
protected void onDestroyed(Bundle args) {
|
||||
toast = null;
|
||||
if (toast != null) {
|
||||
toast.cancel();
|
||||
toast = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -413,7 +413,10 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
|
|||
|
||||
@Override
|
||||
protected void onDestroyed(Bundle args) {
|
||||
toast = null;
|
||||
if (toast != null) {
|
||||
toast.cancel();
|
||||
toast = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -2397,7 +2397,10 @@ public class FragmentCompose extends FragmentBase {
|
|||
|
||||
@Override
|
||||
protected void onDestroyed(Bundle args) {
|
||||
toast = null;
|
||||
if (toast != null) {
|
||||
toast.cancel();
|
||||
toast = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -2474,7 +2477,10 @@ public class FragmentCompose extends FragmentBase {
|
|||
|
||||
@Override
|
||||
protected void onDestroyed(Bundle args) {
|
||||
toast = null;
|
||||
if (toast != null) {
|
||||
toast.cancel();
|
||||
toast = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue