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

Commit 31a50cf2 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Merge branch '2799-u-show-shimmer-on-load' into 'main'

Show loading ui everytime home page is making requests

See merge request !517
parents c0f9d8f4 8888c651
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -186,6 +186,7 @@ class HomeFragment : TimeoutFragment(R.layout.fragment_home), ApplicationInstall
    }

    override fun loadData(authObjectList: List<AuthObject>) {
        showLoadingUI()
        homeViewModel.loadData(authObjectList, viewLifecycleOwner) { _ ->
            clearAndRestartGPlayLogin()
            true
@@ -258,7 +259,6 @@ class HomeFragment : TimeoutFragment(R.layout.fragment_home), ApplicationInstall

    override fun onResume() {
        super.onResume()
        binding.shimmerLayout.startShimmer()
        appProgressViewModel.downloadProgress.observe(viewLifecycleOwner) {
            updateProgressOfDownloadingAppItemViews(homeParentRVAdapter, it)
        }