We notify VR Core when a 2D intent is running in VR in persistent mode.

One of the paths that sends these notifications incorrectly indicated
that a VR app was not running. Fix the callsite to include the current
VR component instead of null.

Bug: 38004624
Test: Launch VR app, verify null component is not sent to VR core
while it's running.

Change-Id: I0589ee51952a503bfddec214999ed5bce48715ba
This commit is contained in:
Alex Sakhartchouk
2017-05-17 12:34:53 -04:00
parent 7415a5941b
commit 6b1251f817

View File

@@ -368,7 +368,7 @@ public class VrManagerService extends SystemService implements EnabledComponentC
// There is an active service, update it if needed
updateCurrentVrServiceLocked(mVrModeEnabled, mCurrentVrService.getComponent(),
mCurrentVrService.getUserId(), null);
mCurrentVrService.getUserId(), mCurrentVrModeComponent);
}
}
@@ -675,7 +675,7 @@ public class VrManagerService extends SystemService implements EnabledComponentC
* @param enabled new state for VR mode.
* @param component new component to be bound as a VR listener.
* @param userId user owning the component to be bound.
* @param calling the component currently using VR mode, or null to leave unchanged.
* @param calling the component currently using VR mode.
*
* @return {@code true} if the component/user combination specified is valid.
*/