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

Commit 3a092895 authored by Hasib Prince's avatar Hasib Prince
Browse files

fixed: update all button

update all button didn't work after coming back from app detail page
parent 9379f292
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -160,6 +160,7 @@ class UpdatesFragment : TimeoutFragment(R.layout.fragment_updates), FusedAPIInte
    private fun handleStateNoUpdates(list: List<FusedApp>?) {
        if (!list.isNullOrEmpty()) {
            binding.button.isEnabled = true
            initUpdataAllButton()
            binding.noUpdates.visibility = View.GONE
        } else {
            binding.noUpdates.visibility = View.VISIBLE
@@ -277,6 +278,10 @@ class UpdatesFragment : TimeoutFragment(R.layout.fragment_updates), FusedAPIInte
            clearAndRestartGPlayLogin()
            true
        }
        initUpdataAllButton()
    }

    private fun initUpdataAllButton() {
        binding.button.setOnClickListener {
            val interval = updatesViewModel.getUpdateInterval()
            UpdatesWorkManager.enqueueWork(