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

Commit 5fdc383f authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

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

parent bfc696cf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -102,6 +102,12 @@ class GamesFragment : TimeoutFragment(R.layout.fragment_games) {
        )
    }

    override fun noAuthRefresh(): Boolean {
        showLoadingUI()
        categoriesViewModel.getCategoriesListOSS(Category.Type.GAME)
        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