mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Fix
This commit is contained in:
parent
c4d5b64717
commit
943be34761
1 changed files with 5 additions and 1 deletions
|
@ -3876,8 +3876,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
: icalendar.getCalendarScale());
|
||||
VEvent event = icalendar.getEvents().get(0);
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean ical_tentative = prefs.getBoolean("ical_tentative", true);
|
||||
|
||||
boolean permission = Helper.hasPermission(context, Manifest.permission.WRITE_CALENDAR);
|
||||
if (permission || account.calendar != null) {
|
||||
|
||||
if (permission && ical_tentative && account.calendar != null) {
|
||||
if (action == R.id.btnCalendarAccept)
|
||||
CalendarHelper.insert(context, icalendar, event,
|
||||
CalendarContract.Events.STATUS_CONFIRMED, account, message);
|
||||
|
|
Loading…
Reference in a new issue