-
Notifications
You must be signed in to change notification settings - Fork 925
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
Note: text is displayed twice #17808
Note: text is displayed twice #17808
Conversation
&& !walletType.equals(BraveWalletProvider.UPHOLD)) { | ||
notePart1 = String.format( | ||
getString(R.string.brave_ui_site_banner_different_verified_notice_text1), | ||
walletType, BraveWalletProvider.UPHOLD); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems like we have the same code for different else if parts. is there anything i am missing ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes code is almost same except last parameter. like BraveWalletProvider.UPHOLD
R.string.brave_ui_site_banner_different_verified_notice_text1 this requires two parameters.
%1$s, %2$s
i.e.
Which custodian user is using and which custodian creator is verified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can probably create a private function to get custodian name. that way we can avoid duplicated code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
35d6195
to
0345978
Compare
@@ -275,6 +275,26 @@ public void OnGetExternalWallet(String externalWallet) { | |||
setPublisherNoteText(pubStatus, walletStatus); | |||
} | |||
|
|||
private String getWalletString(String walletType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private String getWalletString(String walletType) { | |
private String getWalletStringFromType(String walletType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
} | ||
} | ||
|
||
private String getWalletString(int pubStatus) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private String getWalletString(int pubStatus) { | |
private String getWalletStringFromStatus(int pubStatus) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
0345978
to
ef4efbf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ef4efbf
to
66189d1
Compare
Verification PASSED on
Gemini pubs
Bitflyer pubs
|
@sujitacharya2005 Cross custodial tipping notice is not shown in the BR panel in Android, but it's show in Desktop BR panel. Is this expected? cc: @Miyayes @deeppandya |
In BR Panel showing cross custodian is not implemented. That is new thing, don't include in this Iteration. Let's keep a follow up issue. May be will include in rewards 3.0 @Miyayes WDYT? |
Thanks @sujitacharya2005. Logged a follow up issue brave/brave-browser#29845 |
Uplift of #17808 (squashed) to beta
Uplift of #17808 (squashed) to release
Resolves brave/brave-browser#29081
Resolves brave/brave-browser#29080
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
In this PR not resolved the Reward panel tool tip because it's new implementation will resolve this in rewards 3.0
In this PR resolves two issues
https://user-images.githubusercontent.com/32419898/228364534-03f02471-5a1c-4ef1-a620-22727687ac3a.mp4