More and less toast

This commit is contained in:
M66B
2022-04-28 10:57:13 +02:00
parent b4e9927d10
commit 25630cd063
11 changed files with 140 additions and 23 deletions

View File

@@ -570,11 +570,6 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
args.putLong("id", account.id);
new SimpleTask<Void>() {
@Override
protected void onPostExecute(Bundle args) {
ToastEx.makeText(context, R.string.title_completed, Toast.LENGTH_LONG).show();
}
@Override
protected Void onExecute(Context context, Bundle args) throws Throwable {
long id = args.getLong("id");
@@ -585,6 +580,11 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
return null;
}
@Override
protected void onExecuted(Bundle args, Void data) {
ToastEx.makeText(context, R.string.title_completed, Toast.LENGTH_LONG).show();
}
@Override
protected void onException(Bundle args, Throwable ex) {
Log.unexpectedError(parentFragment.getParentFragmentManager(), ex);