Fix a potential bug while setting brave as default #22766
Labels
bug
OS/Android
Fixes related to Android browser functionality
priority/P3
The next thing for us to work on. It'll ride the trains.
QA Pass - Android ARM
QA Pass - Android Tab
QA/Yes
release-notes/include
Milestone
Description
The
BraveSetDefaultBrowserUtils.setBraveDefaultSuccess();
will never be executed asMONTHLY_CONTRIBUTION_REQUEST_CODE
andDEFAULT_BROWSER_ROLE_REQUEST_CODE
Both have same values.MONTHLY_CONTRIBUTION_REQUEST_CODE
==DEFAULT_BROWSER_ROLE_REQUEST_CODE
so the
setBraveDefaultSuccess
will never be executed.Actual result
Haven't tested this use case but looks like it can affect set default browser flow, where it will always trigger
dismissRewardsPanel
instead ofsetBraveDefaultSuccess
.Expected result
DEFAULT_BROWSER_ROLE_REQUEST_CODE
should have a different value thanMONTHLY_CONTRIBUTION_REQUEST_CODE
constantBraveActivity
's public constant to the constant file as well if suitable.Issue reproduces how often
easy
Additional information
Not sure which constant value should be changed, though usually should be latter one.
cc: @tapanmodh, Tagging @srirambv to verify the flow, if required.
The text was updated successfully, but these errors were encountered: