show attendees only at caldav synced events
This commit is contained in:
parent
96458a94fa
commit
d0e0324e57
|
@ -288,6 +288,7 @@ class EventActivity : SimpleActivity() {
|
||||||
checkReminderTexts()
|
checkReminderTexts()
|
||||||
updateStartTexts()
|
updateStartTexts()
|
||||||
updateEndTexts()
|
updateEndTexts()
|
||||||
|
updateAttendeesVisibility()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupEditEvent() {
|
private fun setupEditEvent() {
|
||||||
|
@ -661,6 +662,13 @@ class EventActivity : SimpleActivity() {
|
||||||
updateReminderTypeImage(event_reminder_3_type, Reminder(mReminder3Minutes, mReminder3Type))
|
updateReminderTypeImage(event_reminder_3_type, Reminder(mReminder3Minutes, mReminder3Type))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun updateAttendeesVisibility() {
|
||||||
|
val isSyncedEvent = mEventCalendarId != STORED_LOCALLY_ONLY
|
||||||
|
event_attendees_image.beVisibleIf(isSyncedEvent)
|
||||||
|
event_attendees_holder.beVisibleIf(isSyncedEvent)
|
||||||
|
event_attendees_divider.beVisibleIf(isSyncedEvent)
|
||||||
|
}
|
||||||
|
|
||||||
private fun updateReminderTypeImage(view: ImageView, reminder: Reminder) {
|
private fun updateReminderTypeImage(view: ImageView, reminder: Reminder) {
|
||||||
view.beVisibleIf(reminder.minutes != REMINDER_OFF && mEventCalendarId != STORED_LOCALLY_ONLY)
|
view.beVisibleIf(reminder.minutes != REMINDER_OFF && mEventCalendarId != STORED_LOCALLY_ONLY)
|
||||||
val drawable = if (reminder.type == REMINDER_NOTIFICATION) R.drawable.ic_bell else R.drawable.ic_email
|
val drawable = if (reminder.type == REMINDER_NOTIFICATION) R.drawable.ic_bell else R.drawable.ic_email
|
||||||
|
@ -706,6 +714,7 @@ class EventActivity : SimpleActivity() {
|
||||||
config.lastUsedCaldavCalendarId = it
|
config.lastUsedCaldavCalendarId = it
|
||||||
updateCurrentCalendarInfo(getCalendarWithId(calendars, it))
|
updateCurrentCalendarInfo(getCalendarWithId(calendars, it))
|
||||||
updateReminderTypeImages()
|
updateReminderTypeImages()
|
||||||
|
updateAttendeesVisibility()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -883,7 +892,7 @@ class EventActivity : SimpleActivity() {
|
||||||
flags = mEvent.flags.addBitIf(event_all_day.isChecked, FLAG_ALL_DAY)
|
flags = mEvent.flags.addBitIf(event_all_day.isChecked, FLAG_ALL_DAY)
|
||||||
repeatLimit = if (repeatInterval == 0) 0 else mRepeatLimit
|
repeatLimit = if (repeatInterval == 0) 0 else mRepeatLimit
|
||||||
repeatRule = mRepeatRule
|
repeatRule = mRepeatRule
|
||||||
attendees = getAllAttendees()
|
attendees = if (mEventCalendarId == STORED_LOCALLY_ONLY) ArrayList() else getAllAttendees()
|
||||||
eventType = newEventType
|
eventType = newEventType
|
||||||
lastUpdated = System.currentTimeMillis()
|
lastUpdated = System.currentTimeMillis()
|
||||||
source = newSource
|
source = newSource
|
||||||
|
|
Loading…
Reference in New Issue