Skip to content

The phone game runs immersive: the navigation bar no longer covers the control strip - #50

Merged
jpcottin merged 1 commit into
mainfrom
fix/immersive-game-activity
Oct 25, 2026
Merged

jpcottin merged 1 commit into
mainfrom
fix/immersive-game-activity

Conversation

@jpcottin

Copy link
Copy Markdown
Owner

With targetSdk 35 and later the window spans the whole display, and the
launcher activity was the plain NativeActivity with a theme that only
hid the status bar. On a phone with 3-button navigation the bar sat
over the bottom of the control strip, so taps there went to Back, Home
and Recents instead of the ship; with gesture navigation a drag that
started in the gesture band went to the home gesture.

The launcher is now GameActivity, a NativeActivity subclass that hides
the system bars and lets a swipe from the edge show them briefly, the
way the glasses activity already subclasses it to keep its screen on.
The smoke test launches it and asserts that the navigation bar is
hidden and the bottom inset is zero once the first frame is presented;
the CI multi-runs, the replay script and the README launch it by its
new name. A home-screen shortcut made for the old component name needs
to be made again.

…e control strip

With targetSdk 35 and later the window spans the whole display, and the
launcher activity was the plain NativeActivity with a theme that only
hid the status bar. On a phone with 3-button navigation the bar sat
over the bottom of the control strip, so taps there went to Back, Home
and Recents instead of the ship; with gesture navigation a drag that
started in the gesture band went to the home gesture.

The launcher is now GameActivity, a NativeActivity subclass that hides
the system bars and lets a swipe from the edge show them briefly, the
way the glasses activity already subclasses it to keep its screen on.
The smoke test launches it and asserts that the navigation bar is
hidden and the bottom inset is zero once the first frame is presented;
the CI multi-runs, the replay script and the README launch it by its
new name. A home-screen shortcut made for the old component name needs
to be made again.
@jpcottin
jpcottin merged commit 8423bf4 into main Oct 25, 2026
21 checks passed
@jpcottin
jpcottin deleted the fix/immersive-game-activity branch October 25, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant