Skip to content

Conversation

@kanake10
Copy link
Contributor

@kanake10 kanake10 commented Oct 20, 2025

First time contributor checklist

Contributor checklist

  • I am following the Code Style Guidelines
  • My contribution is fully baked and ready to be merged as is
  • I ensure that all the open issues my contribution fixes are mentioned in the commit message of my first commit using the Fixes #1234 syntax

Description

This PR fixes #14368.
The issue occurred probably because openBrowserLink() was called from a non-Activity context which resulted in an ActivityNotFoundException when starting the browser intent. The fix adds a check to detect when the provided context is not an Activity and safely adds the FLAG_ACTIVITY_NEW_TASK flag before launching the browser intent.

Note: We could also add a RuntimeException catch with a log to handle unexpected errors gracefully.

cc @cody-signal @alex-signal

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.

"Browser not found" error in battery optimizations screen

1 participant