Skip to content

WebUiScreen: Close modals with back button#160

Merged
chenxiaolong merged 1 commit into
masterfrom
web-ui-back
Jun 14, 2026
Merged

WebUiScreen: Close modals with back button#160
chenxiaolong merged 1 commit into
masterfrom
web-ui-back

Conversation

@chenxiaolong

Copy link
Copy Markdown
Owner

The behavior is now more in line with how native dialogs work when pressing the back button. Nested modals are supported and each back invocation will only close the topmost one. After all modals are closed, it falls back to the previous behavior of going to the previous WebView history page or finishing the Activity if there is no history left.

@chenxiaolong chenxiaolong self-assigned this Jun 14, 2026
@chenxiaolong chenxiaolong force-pushed the web-ui-back branch 2 times, most recently from e1f357a to 9d32237 Compare June 14, 2026 22:36
The behavior is now more in line with how native dialogs work when
pressing the back button. Nested modals are supported and each back
invocation will only close the topmost one. After all modals are closed,
it falls back to the previous behavior of going to the previous WebView
history page or finishing the Activity if there is no history left.

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
chenxiaolong added a commit that referenced this pull request Jun 14, 2026
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong merged commit 61861db into master Jun 14, 2026
1 check passed
@chenxiaolong chenxiaolong deleted the web-ui-back branch June 14, 2026 22:47
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