Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix IntentUtils.showBrowserIntent() and use it everywhere #3535

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adbenitez
Copy link
Member

fix IntentUtils.showBrowserIntent() and use it everywhere instead of having duplicate code

close #3534

@adbenitez adbenitez requested review from r10s and Hocuri January 11, 2025 18:47
@adbenitez adbenitez self-assigned this Jan 11, 2025
Copy link

To test the changes in this pull request, install this apk:
📦 app-preview.apk

Copy link
Collaborator

@Hocuri Hocuri left a comment

Choose a reason for hiding this comment

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

Nice, thanks for fixing!

@@ -21,7 +25,11 @@ public static boolean isResolvable(@NonNull Context context, @NonNull Intent int

public static void showBrowserIntent(Context context, String url) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about renaming it to showInBrowser()? showBrowserIntent() sounds to me like it will return an intent that shows the URL in the browser.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea!

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.

ActivityNotFoundException in IntentUtils.showBrowserIntent
2 participants