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

Skip to content
Commit f1932029 authored by Nate Myren's avatar Nate Myren
Browse files

Ensure PermStateLiveData registers listener on first load

Ensure that PermStateLiveData checks if it has active observers before
adding a permission listener, not check if registeredUid is null. This
is because registeredUid can be null while the liveData is active (it
happens on first load, when the liveData doesn't know the package UID
yet)

Test: Go to the app info page of an app with denied location permission,
quickly click on the "permissions", then "location", and change from
deny to "ask every time", then go back. The location permission should
move to the "ask every time" category.
Fixes: 159354186

Change-Id: I11244268d537063396370aa07ca1f2efe4c0656e
parent 80f22dcb
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