Added simple task/destroyed

This commit is contained in:
M66B
2022-05-14 21:48:19 +02:00
parent 372f0b1b5e
commit 3cfa634ac9
6 changed files with 40 additions and 0 deletions

View File

@@ -482,6 +482,11 @@ public class FragmentContacts extends FragmentBase {
ToastEx.makeText(getContext(), R.string.title_completed, Toast.LENGTH_LONG).show();
}
@Override
protected void onDestroyed(Bundle args) {
toast = null;
}
@Override
protected void onException(Bundle args, Throwable ex) {
if (ex instanceof NoStreamException)
@@ -576,6 +581,11 @@ public class FragmentContacts extends FragmentBase {
ToastEx.makeText(getContext(), R.string.title_completed, Toast.LENGTH_LONG).show();
}
@Override
protected void onDestroyed(Bundle args) {
toast = null;
}
@Override
protected void onException(Bundle args, Throwable ex) {
Log.unexpectedError(getParentFragmentManager(), ex);