forked from github/wulkanowy-mirror
Fix overlapping error view (#1493)
This commit is contained in:
parent
7217d0f753
commit
6d5acbad2c
@ -234,6 +234,7 @@ class AttendancePresenter @Inject constructor(
|
|||||||
enableSwipe(true)
|
enableSwipe(true)
|
||||||
showRefresh(true)
|
showRefresh(true)
|
||||||
showProgress(false)
|
showProgress(false)
|
||||||
|
showErrorView(false)
|
||||||
showEmpty(filteredAttendance.isEmpty())
|
showEmpty(filteredAttendance.isEmpty())
|
||||||
showContent(filteredAttendance.isNotEmpty())
|
showContent(filteredAttendance.isNotEmpty())
|
||||||
updateData(filteredAttendance.sortedBy { item -> item.number })
|
updateData(filteredAttendance.sortedBy { item -> item.number })
|
||||||
|
@ -117,6 +117,7 @@ class MessageTabPresenter @Inject constructor(
|
|||||||
if (!it.data.isNullOrEmpty()) {
|
if (!it.data.isNullOrEmpty()) {
|
||||||
view?.run {
|
view?.run {
|
||||||
enableSwipe(true)
|
enableSwipe(true)
|
||||||
|
showErrorView(false)
|
||||||
showRefresh(true)
|
showRefresh(true)
|
||||||
showProgress(false)
|
showProgress(false)
|
||||||
showContent(true)
|
showContent(true)
|
||||||
|
@ -64,6 +64,7 @@ class SchoolAnnouncementPresenter @Inject constructor(
|
|||||||
view?.run {
|
view?.run {
|
||||||
enableSwipe(true)
|
enableSwipe(true)
|
||||||
showRefresh(true)
|
showRefresh(true)
|
||||||
|
showErrorView(false)
|
||||||
showProgress(false)
|
showProgress(false)
|
||||||
showContent(true)
|
showContent(true)
|
||||||
updateData(it.data)
|
updateData(it.data)
|
||||||
|
@ -149,6 +149,7 @@ class TimetablePresenter @Inject constructor(
|
|||||||
view?.run {
|
view?.run {
|
||||||
enableSwipe(true)
|
enableSwipe(true)
|
||||||
showRefresh(true)
|
showRefresh(true)
|
||||||
|
showErrorView(false)
|
||||||
showProgress(false)
|
showProgress(false)
|
||||||
showContent(true)
|
showContent(true)
|
||||||
updateData(it.data!!.lessons)
|
updateData(it.data!!.lessons)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user