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

Localizing binance.com buy URL (Android widget) #7657

Merged
merged 2 commits into from
Jan 20, 2021
Merged

Conversation

ryanml
Copy link
Contributor

@ryanml ryanml commented Jan 20, 2021

Fixes brave/brave-browser#9691

Submitter Checklist:

  • There is a ticket for my issue.
  • Used Github auto-closing keywords in the commit message.
  • Wrote a good PR/commit description
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed).
  • Requested a security/privacy review as needed.

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

Defined in issue

@@ -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
Copy link
Contributor

@deeppandya deeppandya Jan 20, 2021

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 +.

Copy link
Contributor

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.

Copy link
Contributor

@deeppandya deeppandya left a comment

Choose a reason for hiding this comment

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

LGTM

@ryanml
Copy link
Contributor Author

ryanml commented Jan 20, 2021

All CI steps pass, ios failure is unrelated to this PR and has a pending fix

@ryanml ryanml merged commit 31db873 into master Jan 20, 2021
@ryanml ryanml deleted the fix-9691-android branch January 20, 2021 17:30
@ryanml ryanml added this to the 1.21.x - Nightly milestone Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Binance widget and autocomplete shouldn't use /en/ for all locales
2 participants