forked from github/wulkanowy-mirror
Fix show error details button in additional lessons (#1225)
This commit is contained in:
parent
555b5ec112
commit
3f6159e976
@ -150,7 +150,7 @@ ext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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'
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
||||||
|
|
||||||
|
@ -57,6 +57,7 @@ class AdditionalLessonsFragment :
|
|||||||
additionalLessonsSwipe.setColorSchemeColors(requireContext().getThemeAttrColor(R.attr.colorPrimary))
|
additionalLessonsSwipe.setColorSchemeColors(requireContext().getThemeAttrColor(R.attr.colorPrimary))
|
||||||
additionalLessonsSwipe.setProgressBackgroundColorSchemeColor(requireContext().getThemeAttrColor(R.attr.colorSwipeRefresh))
|
additionalLessonsSwipe.setProgressBackgroundColorSchemeColor(requireContext().getThemeAttrColor(R.attr.colorSwipeRefresh))
|
||||||
additionalLessonsErrorRetry.setOnClickListener { presenter.onRetry() }
|
additionalLessonsErrorRetry.setOnClickListener { presenter.onRetry() }
|
||||||
|
additionalLessonsErrorDetails.setOnClickListener { presenter.onDetailsClick() }
|
||||||
|
|
||||||
additionalLessonsPreviousButton.setOnClickListener { presenter.onPreviousDay() }
|
additionalLessonsPreviousButton.setOnClickListener { presenter.onPreviousDay() }
|
||||||
additionalLessonsNavDate.setOnClickListener { presenter.onPickDate() }
|
additionalLessonsNavDate.setOnClickListener { presenter.onPickDate() }
|
||||||
|
@ -80,6 +80,10 @@ class AdditionalLessonsPresenter @Inject constructor(
|
|||||||
loadData(currentDate, true)
|
loadData(currentDate, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun onDetailsClick() {
|
||||||
|
view?.showErrorDetailsDialog(lastError)
|
||||||
|
}
|
||||||
|
|
||||||
private fun setBaseDateOnHolidays() {
|
private fun setBaseDateOnHolidays() {
|
||||||
flow {
|
flow {
|
||||||
val student = studentRepository.getCurrentStudent()
|
val student = studentRepository.getCurrentStudent()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user