mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Select by calendar account and name
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user