Dismiss immersive mode overlay while in VR mode.

Bug: 28052143
Change-Id: I750753c72cb8d41bf91c108e8fc645750fbf9c45
This commit is contained in:
Ruben Brunk
2016-05-17 13:39:59 -07:00
parent a63e1325b5
commit c30c8fd29c

View File

@@ -380,6 +380,10 @@ public class ImmersiveModeConfirmation {
@Override
public void onVrStateChanged(boolean enabled) throws RemoteException {
mVrModeEnabled = enabled;
if (mVrModeEnabled) {
mHandler.removeMessages(H.SHOW);
mHandler.sendEmptyMessage(H.HIDE);
}
}
};
}