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

Commit 8f469fc1 authored by Fahim M. Choudhury's avatar Fahim M. Choudhury
Browse files

Merge branch '4242-fix-update-all-button-click-ai-review' into 'main'

fix(update): rebind Update All button on recreated views

See merge request !774
parents 54f069d9 0fc678cb
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,6 +93,7 @@ class UpdatesFragment : TimeoutFragment(R.layout.fragment_updates), ApplicationI
        _binding = FragmentUpdatesBinding.bind(view)

        binding.button.isEnabled = false
        initUpdateAllButton()
        setupListening()

        authObjects.observe(viewLifecycleOwner) {
@@ -318,7 +319,6 @@ class UpdatesFragment : TimeoutFragment(R.layout.fragment_updates), ApplicationI
        if (updatesViewModel.haveSourcesChanged()) {
            showLoadingUI()
            updatesViewModel.loadUpdates()
            initUpdateAllButton()
            updateButtonAvailability()
        }
    }