-
Notifications
You must be signed in to change notification settings - Fork 873
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
Localizing binance.com buy URL (Android widget) #7657
Conversation
dd6314f
to
2c3ba99
Compare
@@ -111,8 +111,11 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat | |||
public void onClick(View view) { | |||
String buyUrl = ""; | |||
if (buyRadioGroup.getCheckedRadioButtonId() == R.id.com_radio) { | |||
buyUrl = String.format(BinanceWidgetManager.BINANCE_COM, selectedFiat, | |||
selectedCrypto, amountEditText.getText()); | |||
String localizedUrl = BinanceWidgetManager.BINANCE_COM_ONE |
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 should use StringBuilder.append instead of +
.
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.
@ryanml i am updating it.
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
All CI steps pass, ios failure is unrelated to this PR and has a pending fix |
Fixes brave/brave-browser#9691
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
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed).Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on.
Test Plan:
Defined in issue