Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Fix bug in error handling while loading more apps

parent 10d9e95c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
+4 −0
Original line number Diff line number Diff line
@@ -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
            }
        }
    }