fixed: hang on opening of updatepage
Description
Fixed the hang when user navigates to update page. When Update page is opened, it does some intensive operation which blocks the UI thread.
Screenshots
Technical details
Initial operation for update page is triggered in a coroutine launched by viewModelScope
which uses Dispatchers.Main
. Update page do some operation related to PackageManager
which is very intensive operation. These operations were done within viewModelScope
which blocks the UI thread. Now this operations are invoked in Dispatchers.IO
which makes free the UI thread.
Tests
Launch App Lounge, go to update page and observe any hang exists or not.