From 98485c539e4f97b375b6df5eef94bcd18c055ea5 Mon Sep 17 00:00:00 2001 From: Doozy Date: Tue, 5 Jul 2022 19:37:05 +0300 Subject: [PATCH] refomatted with ctrl alt L --- .../calendar/pro/adapters/DayEventsAdapter.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/adapters/DayEventsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/adapters/DayEventsAdapter.kt index 4e0ef4bb9..81e5d2172 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/adapters/DayEventsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/adapters/DayEventsAdapter.kt @@ -22,7 +22,7 @@ import com.simplemobiletools.commons.helpers.ensureBackgroundThread import com.simplemobiletools.commons.views.MyRecyclerView import kotlinx.android.synthetic.main.event_list_item.view.* -class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList, recyclerView: MyRecyclerView, var dayCode:String, itemClick: (Any) -> Unit) : +class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList, recyclerView: MyRecyclerView, var dayCode: String, itemClick: (Any) -> Unit) : MyRecyclerViewAdapter(activity, recyclerView, itemClick) { private val allDayString = resources.getString(R.string.all_day) @@ -43,7 +43,7 @@ class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList, r override fun actionItemPressed(id: Int) { when (id) { - R.id.cab_share -> shareEvents() + R.id.cab_share -> shareEvents() R.id.cab_delete -> askConfirmDelete() } } @@ -79,7 +79,7 @@ class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList, r } else { activity.getProperTextColor() } - + notifyDataSetChanged() } @@ -93,8 +93,8 @@ class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList, r if (event.startTS != event.endTS && !event.getIsAllDay()) { val startDayCode = Formatter.getDayCodeFromTS(event.startTS) val endDayCode = Formatter.getDayCodeFromTS(event.endTS) - val startDate = Formatter.getDayTitle(activity, startDayCode,false) - val endDate = Formatter.getDayTitle(activity, endDayCode,false) + val startDate = Formatter.getDayTitle(activity, startDayCode, false) + val endDate = Formatter.getDayTitle(activity, endDayCode, false) val startTimeString = event_item_time.text val endTimeString = Formatter.getTimeFromTS(context, event.endTS) val startDayString = if (startDayCode != dayCode) "($startDate)" else "" @@ -113,7 +113,7 @@ class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList, r } else { dimPastEvents && event.isPastEvent && !isPrintVersion } - + if (adjustAlpha) { newTextColor = newTextColor.adjustAlpha(MEDIUM_ALPHA) } @@ -129,7 +129,7 @@ class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList, r } else { mediumMargin } - + (event_item_title.layoutParams as ConstraintLayout.LayoutParams).marginStart = startMargin } }