Fixed dialog tasks

pull/162/head
M66B 5 years ago
parent ac69a94dd2
commit 4a81f17a1f

@ -4127,7 +4127,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
Helper.unexpectedError(getFragmentManager(), ex); Helper.unexpectedError(getFragmentManager(), ex);
} }
}.execute(FragmentKeywordManage.this, args, "message:keywords:manage"); }.execute(getContext(), getActivity(), args, "message:keywords:manage");
} }
}) })
.setNeutralButton(R.string.title_add, new DialogInterface.OnClickListener() { .setNeutralButton(R.string.title_add, new DialogInterface.OnClickListener() {
@ -4191,7 +4191,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
Helper.unexpectedError(getFragmentManager(), ex); Helper.unexpectedError(getFragmentManager(), ex);
} }
}.execute(FragmentKeywordAdd.this, args, "message:keyword:add"); }.execute(getContext(), getActivity(), args, "message:keyword:add");
} }
} }
}) })

@ -193,7 +193,7 @@ public class FragmentContacts extends FragmentBase {
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
Helper.unexpectedError(getFragmentManager(), ex); Helper.unexpectedError(getFragmentManager(), ex);
} }
}.execute(FragmentDelete.this, new Bundle(), "contacts:delete"); }.execute(getContext(), getActivity(), new Bundle(), "contacts:delete");
} }
}) })
.setNegativeButton(android.R.string.cancel, null) .setNegativeButton(android.R.string.cancel, null)

@ -154,7 +154,7 @@ public class FragmentOperations extends FragmentBase {
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
Helper.unexpectedError(getFragmentManager(), ex); Helper.unexpectedError(getFragmentManager(), ex);
} }
}.execute(DialogDelete.this, new Bundle(), "operations:delete"); }.execute(getContext(), getActivity(), new Bundle(), "operations:delete");
} }
}) })
.setNegativeButton(android.R.string.cancel, null) .setNegativeButton(android.R.string.cancel, null)

@ -507,7 +507,7 @@ public class Helper {
else else
ToastEx.makeText(context, ex.toString(), Toast.LENGTH_LONG).show(); ToastEx.makeText(context, ex.toString(), Toast.LENGTH_LONG).show();
} }
}.execute(FragmentDialogUnexpected.this, new Bundle(), "error:unexpected"); }.execute(getContext(), getActivity(), new Bundle(), "error:unexpected");
} }
}) })
.create(); .create();

Loading…
Cancel
Save