Commit d987d20f authored by Nihar Thakkar's avatar Nihar Thakkar
Browse files

Fix bug in error handling while loading more apps

parent 10d9e95c
......@@ -106,10 +106,10 @@ class CategoryActivity : AppCompatActivity(), ApplicationManagerServiceConnectio
errorContainer.visibility = View.VISIBLE
progressBar.visibility = View.GONE
loadMoreContainer.visibility = View.GONE
isLoadingMoreApplications = false
} else {
errorContainer.visibility = View.GONE
}
isLoadingMoreApplications = false
})
applicationManagerServiceConnection.bindService(this)
......
......@@ -42,6 +42,8 @@ class CategoryModel : CategoryModelInterface {
} else {
if (page == 1) {
screenError.value = error
} else {
screenError.value = null
}
}
})
......@@ -49,6 +51,8 @@ class CategoryModel : CategoryModelInterface {
} else {
if (page == 1) {
screenError.value = Error.NO_INTERNET
} else {
screenError.value = null
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment