From 4a0a6c54e44e93143d4cf9d08e53bf039c777e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Tue, 12 Nov 2019 14:36:20 +0100 Subject: [PATCH] [Timetable] Make timetable sync disable the button on click. --- .../ui/modules/timetable/v2/day/TimetableDayFragment.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/v2/day/TimetableDayFragment.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/v2/day/TimetableDayFragment.kt index 885cbb9c..3afcc2ba 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/v2/day/TimetableDayFragment.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/timetable/v2/day/TimetableDayFragment.kt @@ -71,7 +71,8 @@ class TimetableDayFragment(val date: Date) : Fragment() { b.noTimetableLayout.visibility = View.VISIBLE b.noLessonsLayout.visibility = View.GONE val weekStart = date.clone().stepForward(0, 0, -date.weekDay).stringY_m_d - b.noTimetableSync.setOnClickListener { + b.noTimetableSync.onClick { + it.isEnabled = false EdziennikTask.syncProfile( profileId = App.profileId, viewIds = listOf(