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

Skip to content
Commit 274d2fc1 authored by Hai Zhang's avatar Hai Zhang
Browse files

Fix crash when role data isn't loaded after restoring state.

In the case where we have a saved state but view model is destroyed,
ListView.getCheckedItemPosition() may return a valid position when we
haven't got the item loaded yet. This change ensures we don't enable
the positive button before role data is loaded, and updates the UI
again when we have the data available.

Fixes: 141367460
Test: presubmit
Change-Id: Ia24cb6396f9038cac4f9bd490705ebca2c4b4a4a
(cherry picked from commit 43d3eec9)
parent 1189512b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment