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

Commit bfc696cf authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

issue_5413_2: AppsFragment - override noAuthRefresh() to call getCategoriesListOSS()

parent 975127d0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -107,6 +107,12 @@ class AppsFragment : TimeoutFragment(R.layout.fragment_apps) {
        )
    }

    override fun noAuthRefresh(): Boolean {
        showLoadingUI()
        categoriesViewModel.getCategoriesListOSS(Category.Type.APPLICATION)
        return false   // returning false so as to try to get GPlay auth data or show timeout dialog
    }

    private fun showLoadingUI() {
        binding.shimmerLayout.startShimmer()
        binding.shimmerLayout.visibility = View.VISIBLE