Android: show the stream menu on Back #827
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
stale
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-streetpea/chiaki-ng!827
Loading…
Reference in a new issue
No description provided.
Delete branch "aoleg94/android-fix-overlay"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Same problem as #819: with
BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPEthe app is never told when anedge swipe reveals the bars, so the stream menu (on-screen controls / touchpad-only switches,
display mode) can't be opened. I reached the same conclusion about
BEHAVIOR_DEFAULT(theswipe goes on to the home gesture).
This PR uses Back instead of a new button: Back opens the menu, Back while it is open leaves
the stream (before, Back always left). It needs no setting and works with gesture, 3-button
navigation and a mouse's back button. The menu hides on its own 2 s timer, as the bars hiding
isn't reported either; #819 makes the same timer change.
It complements #819 rather than replacing it: the button is still useful for users who want a
visible control. If #819 lands first I'll rebase onto it (both touch
hideSystemUIRunnable).Implementation
StreamBackCallback(OnBackPressedCallback): overlay hidden → show it, shown → leave.hideSystemUIRunnablealso hides the overlay.Testing
StreamBackCallbackTestthrough a realOnBackPressedDispatcher../gradlew testDebugUnitTestpasses.leaves. With gesture navigation the first side swipe only reveals the transient bars; the
second is Back.
Notes
Developed with the assistance of Claude Code, and tested on real hardware as described above.
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.