Cancel orphan toasts

pull/207/head
M66B 3 years ago
parent bfaad8333e
commit fd1013b6ad

@ -679,8 +679,11 @@ public class ActivityEML extends ActivityBase {
@Override @Override
protected void onDestroyed(Bundle args) { protected void onDestroyed(Bundle args) {
if (toast != null) {
toast.cancel();
toast = null; toast = null;
} }
}
@Override @Override
protected void onException(Bundle args, @NonNull Throwable ex) { protected void onException(Bundle args, @NonNull Throwable ex) {

@ -791,8 +791,11 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
@Override @Override
protected void onDestroyed(Bundle args) { protected void onDestroyed(Bundle args) {
if (toast != null) {
toast.cancel();
toast = null; toast = null;
} }
}
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {

@ -413,8 +413,11 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
@Override @Override
protected void onDestroyed(Bundle args) { protected void onDestroyed(Bundle args) {
if (toast != null) {
toast.cancel();
toast = null; toast = null;
} }
}
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {

@ -2397,8 +2397,11 @@ public class FragmentCompose extends FragmentBase {
@Override @Override
protected void onDestroyed(Bundle args) { protected void onDestroyed(Bundle args) {
if (toast != null) {
toast.cancel();
toast = null; toast = null;
} }
}
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
@ -2474,8 +2477,11 @@ public class FragmentCompose extends FragmentBase {
@Override @Override
protected void onDestroyed(Bundle args) { protected void onDestroyed(Bundle args) {
if (toast != null) {
toast.cancel();
toast = null; toast = null;
} }
}
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {

@ -498,8 +498,11 @@ public class FragmentContacts extends FragmentBase {
@Override @Override
protected void onDestroyed(Bundle args) { protected void onDestroyed(Bundle args) {
if (toast != null) {
toast.cancel();
toast = null; toast = null;
} }
}
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
@ -597,8 +600,11 @@ public class FragmentContacts extends FragmentBase {
@Override @Override
protected void onDestroyed(Bundle args) { protected void onDestroyed(Bundle args) {
if (toast != null) {
toast.cancel();
toast = null; toast = null;
} }
}
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {

Loading…
Cancel
Save