mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-06-18 00:02:44 +02:00
[Timetable] Make timetable sync disable the button on click.
This commit is contained in:
@ -71,7 +71,8 @@ class TimetableDayFragment(val date: Date) : Fragment() {
|
|||||||
b.noTimetableLayout.visibility = View.VISIBLE
|
b.noTimetableLayout.visibility = View.VISIBLE
|
||||||
b.noLessonsLayout.visibility = View.GONE
|
b.noLessonsLayout.visibility = View.GONE
|
||||||
val weekStart = date.clone().stepForward(0, 0, -date.weekDay).stringY_m_d
|
val weekStart = date.clone().stepForward(0, 0, -date.weekDay).stringY_m_d
|
||||||
b.noTimetableSync.setOnClickListener {
|
b.noTimetableSync.onClick {
|
||||||
|
it.isEnabled = false
|
||||||
EdziennikTask.syncProfile(
|
EdziennikTask.syncProfile(
|
||||||
profileId = App.profileId,
|
profileId = App.profileId,
|
||||||
viewIds = listOf(
|
viewIds = listOf(
|
||||||
|
Reference in New Issue
Block a user