From b31416c7f84c45eeb438ee96ba0dc2005a507ca2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 10 Sep 2018 14:34:00 +0200 Subject: [PATCH] renaming a couple more views --- .../calendar/adapters/DayEventsAdapter.kt | 4 ++-- app/src/main/res/layout/event_item_day_view.xml | 8 ++++---- app/src/main/res/layout/event_list_item.xml | 4 ++-- app/src/main/res/layout/event_list_item_simple.xml | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/DayEventsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/DayEventsAdapter.kt index 2bd308693..5f5446217 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/DayEventsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/adapters/DayEventsAdapter.kt @@ -67,7 +67,7 @@ class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList, r private fun setupView(view: View, event: Event) { view.apply { - event_section_title.text = event.title + event_item_title.text = event.title event_item_description.text = if (replaceDescriptionWithLocation) event.location else event.description event_item_start.text = if (event.getIsAllDay()) allDayString else Formatter.getTimeFromTS(context, event.startTS) event_item_end.beInvisibleIf(event.startTS == event.endTS) @@ -98,7 +98,7 @@ class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList, r event_item_start.setTextColor(newTextColor) event_item_end.setTextColor(newTextColor) - event_section_title.setTextColor(newTextColor) + event_item_title.setTextColor(newTextColor) event_item_description.setTextColor(newTextColor) } } diff --git a/app/src/main/res/layout/event_item_day_view.xml b/app/src/main/res/layout/event_item_day_view.xml index c66c75730..946492adf 100644 --- a/app/src/main/res/layout/event_item_day_view.xml +++ b/app/src/main/res/layout/event_item_day_view.xml @@ -34,7 +34,7 @@ android:textSize="@dimen/day_text_size"/> diff --git a/app/src/main/res/layout/event_list_item.xml b/app/src/main/res/layout/event_list_item.xml index a6e5cf662..a0fb32fb9 100644 --- a/app/src/main/res/layout/event_list_item.xml +++ b/app/src/main/res/layout/event_list_item.xml @@ -68,10 +68,10 @@ android:id="@+id/event_item_color" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_alignBottom="@+id/event_section_title" + android:layout_alignBottom="@+id/event_item_title" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" - android:layout_alignTop="@+id/event_section_title" + android:layout_alignTop="@+id/event_item_title" android:paddingRight="@dimen/medium_margin" android:src="@drawable/monthly_event_dot"/> diff --git a/app/src/main/res/layout/event_list_item_simple.xml b/app/src/main/res/layout/event_list_item_simple.xml index e9f31672d..83deda7dc 100644 --- a/app/src/main/res/layout/event_list_item_simple.xml +++ b/app/src/main/res/layout/event_list_item_simple.xml @@ -44,10 +44,10 @@ android:id="@+id/event_item_color" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_alignBottom="@+id/event_section_title" + android:layout_alignBottom="@+id/event_item_title" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" - android:layout_alignTop="@+id/event_section_title" + android:layout_alignTop="@+id/event_item_title" android:paddingRight="@dimen/medium_margin" android:src="@drawable/monthly_event_dot"/>