Select calendar for event

pull/212/head
M66B 2 years ago
parent 43dedad615
commit 3705f5061a

@ -3727,6 +3727,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@Override
protected void onExecuted(Bundle args, String calendar) {
args.putString("calendar", calendar);
args.putBoolean("forevent", true);
FragmentDialogCalendar fragment = new FragmentDialogCalendar();
fragment.setArguments(args);

@ -47,7 +47,10 @@ public class FragmentDialogCalendar extends FragmentDialogBase {
final Context context = getContext();
final ContentResolver resolver = context.getContentResolver();
String selectedCalendar = getArguments().getString("calendar");
Bundle args = getArguments();
boolean forevent = args.getBoolean("forevent");
String selectedCalendar = args.getString("calendar");
String selectedAccount;
String selectedName;
try {
@ -122,6 +125,7 @@ public class FragmentDialogCalendar extends FragmentDialogBase {
}
});
if (!forevent)
builder.setNegativeButton(R.string.title_reset, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {

Loading…
Cancel
Save