Skip to content

Add open in browser bridge#6412

Merged
crossle merged 4 commits into
masterfrom
feat/open-in-browser
May 26, 2026
Merged

Add open in browser bridge#6412
crossle merged 4 commits into
masterfrom
feat/open-in-browser

Conversation

@Tougee
Copy link
Copy Markdown
Member

@Tougee Tougee commented May 26, 2026

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a JavaScript bridge API to allow web content shown in WebFragment to trigger an “open in browser” flow via Custom Tabs (with a fallback to ACTION_VIEW).

Changes:

  • Add MixinContext.openInBrowser(url) JavaScript interface and wire it to a new WebFragment.openInBrowser(...) helper.
  • Implement Custom Tabs launch + fallback intent with extra headers.
  • Remove unused Compose imports from ContextExtension.kt.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
app/src/main/java/one/mixin/android/ui/web/WebFragment.kt Adds JS bridge hook and the Custom Tabs / browser opening implementation.
app/src/main/java/one/mixin/android/extension/ContextExtension.kt Cleans up unused imports.

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

Comment thread app/src/main/java/one/mixin/android/ui/web/WebFragment.kt Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread app/src/main/java/one/mixin/android/ui/web/WebFragment.kt Outdated
Comment thread app/src/main/java/one/mixin/android/ui/web/WebFragment.kt
Comment thread app/src/main/java/one/mixin/android/extension/ContextExtension.kt
@crossle crossle merged commit edce17b into master May 26, 2026
2 checks passed
@crossle crossle deleted the feat/open-in-browser branch May 26, 2026 10:45
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.

3 participants