Follow up to "Add modified API to send more information to VrCore"

Fixes corner case when the same component name first shows up as a
non VR activity, then again as VR.

Bug: 63709047
Test: Device launched to VR Home
Change-Id: I6f590185635cde06b0fba9f0e05ff6d6d586cfbb
This commit is contained in:
Alex Sakhartchouk
2017-07-24 22:12:39 -04:00
parent f5c3922645
commit ec4d3e4e23

View File

@@ -779,7 +779,8 @@ public class VrManagerService extends SystemService implements EnabledComponentC
}
if ((calling != null || mPersistentVrModeEnabled)
&& !Objects.equals(calling, mCurrentVrModeComponent)) {
&& !Objects.equals(calling, mCurrentVrModeComponent)
|| mRunning2dInVr != running2dInVr) {
sendUpdatedCaller = true;
}
mCurrentVrModeComponent = calling;