fix empty list messages display
This commit is contained in:
@@ -174,10 +174,8 @@ class UserListFragment : BaseFragment() {
|
||||
.whereGreaterThanOrEqualTo("createdAt", today)
|
||||
.orderBy("createdAt", Query.Direction.DESCENDING)
|
||||
query.get().addOnSuccessListener {
|
||||
if (it.documents.isEmpty()) {
|
||||
if (it.documents.isEmpty() && isOnline) {
|
||||
binding.emptyRegistrations.visibility = View.VISIBLE
|
||||
} else {
|
||||
binding.emptyRegistrations.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
val recyclerViewOptions =
|
||||
@@ -195,6 +193,7 @@ class UserListFragment : BaseFragment() {
|
||||
binding.noList.visibility = View.GONE
|
||||
binding.rvOrder.visibility = View.VISIBLE
|
||||
} else {
|
||||
binding.emptyRegistrations.visibility = View.GONE
|
||||
if (userDataList.isEmpty()) {
|
||||
binding.noList.visibility = View.VISIBLE
|
||||
binding.rvOrder.visibility = View.GONE
|
||||
|
||||
Reference in New Issue
Block a user