mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-03 19:27:24 +00:00
Added an empty list message to the Passes screen
This commit is contained in:
1 parent
65941a8304
commit
acc308379c
5 files changed
+45
-10
No files matched your search
@@ -141,12 +141,12 @@ class PassesFragment : Fragment(R.layout.fragment_passes), PassesAdapter.PassesC
|
||||
tickMainTimer(state.data)
|
||||
if (state.data.isNotEmpty()) { // show new passes list
|
||||
passesRecycler.visibility = View.VISIBLE
|
||||
passesErrorMsg.visibility = View.INVISIBLE
|
||||
passesEmpty.visibility = View.INVISIBLE
|
||||
passesRefreshBtn.isEnabled = true
|
||||
refreshAnimator?.cancel()
|
||||
} else { // show no passes message
|
||||
passesRecycler.visibility = View.INVISIBLE
|
||||
passesErrorMsg.visibility = View.VISIBLE
|
||||
passesEmpty.visibility = View.VISIBLE
|
||||
passesRefreshBtn.isEnabled = true
|
||||
refreshAnimator?.cancel()
|
||||
}
|
||||
@@ -155,7 +155,6 @@ class PassesFragment : Fragment(R.layout.fragment_passes), PassesAdapter.PassesC
|
||||
refreshAnimator?.start()
|
||||
passesRefreshBtn.isEnabled = false
|
||||
passesTimer.text = 0L.toTimerString()
|
||||
passesErrorMsg.visibility = View.INVISIBLE
|
||||
}
|
||||
else -> {}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user