Skip to content

fix(web): close webview for page-opening mixin schemes#6482

Open
SeniorZhai wants to merge 3 commits into
masterfrom
fix/close-webview-for-mixin-schemes
Open

fix(web): close webview for page-opening mixin schemes#6482
SeniorZhai wants to merge 3 commits into
masterfrom
fix/close-webview-for-mixin-schemes

Conversation

@SeniorZhai

Copy link
Copy Markdown
Member

Summary

  • close source WebActivity after Mixin schemes open full pages such as app open, conversation, market, buy, and inscription
  • keep bottom-sheet-only schemes such as user and pay on the current web page

Test

  • ./gradlew :app:compileGooglePlayDebugKotlin

Copilot AI review requested due to automatic review settings July 22, 2026 01:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds conditional source-WebActivity closure when Mixin redirects open full-page destinations, while preserving bottom-sheet flows.

Changes:

  • Classifies page-opening Mixin redirects.
  • Propagates closure intent through URL routing.
  • Adds redirect-classification tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
WebFragment.kt Classifies main-frame redirects requiring closure.
UrlExtension.kt Propagates closure behavior through URL handlers.
LinkBottomSheetDialogFragment.kt Closes source WebActivity after page navigation.
WebFragmentRedirectTest.kt Tests page versus bottom-sheet classification.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}
AnalyticsTracker.trackOpenBotHomePage(AnalyticsTracker.BotSource.SCHEME, app.appNumber)
WebActivity.show(requireActivity(), url, null, app)
closeSourceWebActivityOnOpenPage()
Comment on lines +295 to +297
if (closeSourceOnOpenPage) {
closeSourceWebActivityIfNeeded(context)
}
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.

2 participants