Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
796 stars 100 forks source link

[Vision Glass] Back button when VR is not active #1447

Closed felipeerias closed 3 months ago

felipeerias commented 3 months ago

Fix the issue that the Back button on the phone is not responsive before we have entered VR mode.

The fix is to add a method onBackPressed() to PlatformActivityPlugin which returns true if the platform activity has handled the Back press.

In the Vision Glass implementation, we use the default Back behaviour if the user presses that button before we have started VR mode.