Fix permissions update for VrListenerService on user changes.
- Fixes a bug where we would not update the overlay restrictions if the VR listener we are bound to changes bug the VR enabled state doesn't. - Also fixed a case where the notification listener access and location permission were not granted/revoked for the correct user. For example, if a vr activity in one user calls a VR activity in another (possible for cross profiles) we end up not revoking the special access for the vr service in the first user. The notification listener setting was also updated for the system user instead of the user for which we grant/revoke specal access. - Properly remove the overlay restrictions for the old user if we transition from a vr actiivty in one user to a vr activity in a profile of this user. Bug: 29273985 Change-Id: Ib1de6f2f5445001ac61edca5c77ea3a066544307
Loading
Please register or sign in to comment