diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt index 6ec0f8b14..737a665c5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt @@ -74,6 +74,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener { updateStartTexts() updateEndTexts() updateEventType() + updateCalDAVCalendar() event_start_date.setOnClickListener { setupStartDate() } event_start_time.setOnClickListener { setupStartTime() } @@ -382,6 +383,17 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener { } } + private fun updateCalDAVCalendar() { + if (config.caldavSync) { + event_caldav_calendar_image.beVisible() + event_caldav_calendar_holder.beVisible() + event_caldav_calendar_divider.beVisible() + event_caldav_calendar_holder.setOnClickListener { + + } + } + } + private fun toggleAllDay(isChecked: Boolean) { hideKeyboard() event_start_time.beGoneIf(isChecked) @@ -639,6 +651,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener { event_repetition_image.setColorFilter(config.textColor, PorterDuff.Mode.SRC_IN) event_reminder_image.setColorFilter(config.textColor, PorterDuff.Mode.SRC_IN) event_type_image.setColorFilter(config.textColor, PorterDuff.Mode.SRC_IN) + event_caldav_calendar_image.setColorFilter(config.textColor, PorterDuff.Mode.SRC_IN) } override fun eventInserted(event: Event) { diff --git a/app/src/main/res/layout/activity_event.xml b/app/src/main/res/layout/activity_event.xml index 45cb4eca6..ab4da2fbc 100644 --- a/app/src/main/res/layout/activity_event.xml +++ b/app/src/main/res/layout/activity_event.xml @@ -52,8 +52,8 @@ android:layout_below="@+id/event_description" android:layout_marginBottom="@dimen/normal_margin" android:layout_marginTop="@dimen/activity_margin" - android:importantForAccessibility="no" - android:background="@color/darker_divider"/> + android:background="@color/darker_divider" + android:importantForAccessibility="no"/> + android:textSize="@dimen/day_text_size" + tools:text="January 1 1970"/> + android:textSize="@dimen/day_text_size" + tools:text="00:00"/> + android:textSize="@dimen/day_text_size" + tools:text="January 1 1970"/> + android:textSize="@dimen/day_text_size" + tools:text="00:00"/> + android:background="@color/darker_divider" + android:importantForAccessibility="no"/> + android:background="@color/darker_divider" + android:importantForAccessibility="no"/> + + + + + + + + + + + + + android:visibility="gone"/>