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

fix(updates): remove redundant repeatOnLifecycle() call in Updates screen

Description

Removes redundant repeatOnLifecycle() call in Updates screen.

setButtonEnabled() and its caller updateButtonAvailability() functions gets called from different event-emitting places. This would launch redundant coroutines, and they would live all together at the same time until the view was destroyed.

This MR fixes removes the unnecessary coroutine launch for updating the button.

Screenshots

Technical details

Tests

Issues

10 commandments of code review

👪 ❤️ code review guidelines

Edited by Fahim M. Choudhury

Merge request reports

Loading