Select by calendar account and name

This commit is contained in:
M66B
2022-11-03 11:36:34 +01:00
parent e33eb40833
commit cd955c4f3c
4 changed files with 82 additions and 19 deletions

View File

@@ -449,7 +449,7 @@ public class FragmentAccount extends FragmentBase {
@Override
public void onClick(View v) {
Bundle args = new Bundle();
args.putString("account", calendar);
args.putString("calendar", calendar);
FragmentDialogCalendar fragment = new FragmentDialogCalendar();
fragment.setArguments(args);
@@ -1877,7 +1877,12 @@ public class FragmentAccount extends FragmentBase {
if (resultCode == RESULT_OK && data != null) {
if (ActivityBilling.isPro(getContext())) {
Bundle args = data.getBundleExtra("args");
calendar = args.getString("account");
JSONObject jobject = new JSONObject();
jobject.put("id", args.getLong("id"));
jobject.put("account", args.getString("account"));
jobject.put("type", args.getString("type"));
jobject.put("name", args.getString("name"));
calendar = jobject.toString();
} else
startActivity(new Intent(getContext(), ActivityBilling.class));
}