mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2024-11-23 19:46:35 -06:00
Fix show error details button in additional lessons (#1225)
This commit is contained in:
parent
555b5ec112
commit
3f6159e976
@ -150,7 +150,7 @@ ext {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "io.github.wulkanowy:sdk:1.1.1"
|
||||
implementation "com.github.wulkanowy:sdk:340cf4ebd3"
|
||||
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
||||
|
||||
|
@ -57,6 +57,7 @@ class AdditionalLessonsFragment :
|
||||
additionalLessonsSwipe.setColorSchemeColors(requireContext().getThemeAttrColor(R.attr.colorPrimary))
|
||||
additionalLessonsSwipe.setProgressBackgroundColorSchemeColor(requireContext().getThemeAttrColor(R.attr.colorSwipeRefresh))
|
||||
additionalLessonsErrorRetry.setOnClickListener { presenter.onRetry() }
|
||||
additionalLessonsErrorDetails.setOnClickListener { presenter.onDetailsClick() }
|
||||
|
||||
additionalLessonsPreviousButton.setOnClickListener { presenter.onPreviousDay() }
|
||||
additionalLessonsNavDate.setOnClickListener { presenter.onPickDate() }
|
||||
|
@ -80,6 +80,10 @@ class AdditionalLessonsPresenter @Inject constructor(
|
||||
loadData(currentDate, true)
|
||||
}
|
||||
|
||||
fun onDetailsClick() {
|
||||
view?.showErrorDetailsDialog(lastError)
|
||||
}
|
||||
|
||||
private fun setBaseDateOnHolidays() {
|
||||
flow {
|
||||
val student = studentRepository.getCurrentStudent()
|
||||
|
Loading…
Reference in New Issue
Block a user