Skip to content

NMA-1134 : fix the local currency - #844

Merged
HashEngineering merged 5 commits into
feature-coinbase-integrationfrom
NMA-1134
Dec 27, 2021
Merged

HashEngineering merged 5 commits into
feature-coinbase-integrationfrom
NMA-1134

Conversation

@hadia

@hadia hadia commented Dec 23, 2021

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Fix the Local currency format to match figma
image

Related PR's and Dependencies

Screenshots / Videos

How Has This Been Tested?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

binding.serviceFiatAmount.setAmount(data.localBalance)
binding.serviceFiatAmount.text = Constants.PREFIX_ALMOST_EQUAL_TO+ view.context.getString(
R.string.fiat_balance_with_currency, fiatFormat.format(data.localBalance),
currencySymbol

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Whether a currency symbol goes before or after an amount depends on locale of the device, but here it seems like it is always going to be after the amount.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Actually, I'm not sure if this is required given that we ignore this everywhere in the app except for the Enter Amount screens. @HashEngineering

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In the figma design it's before the amount

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Figma designs don't represent all the possible states of UI. Sometimes it has currency before the amount, sometimes after. Generally, it should depend on the device locale. NumberFormat class handles this automatically, but we probably need to use MonetaryFormat which doesn't.

@Syn-McJ Syn-McJ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See my comment

@Syn-McJ
Syn-McJ self-requested a review December 25, 2021 04:06
# Conflicts:
#	integrations/coinbase-integration/src/main/java/org/dash/wallet/integration/coinbase_integration/ui/CoinbaseServicesFragment.kt
#	wallet/src/de/schildbach/wallet/adapter/BuyAndSellDashServicesAdapter.kt
@hadia
hadia force-pushed the feature-coinbase-integration branch from 3077cd7 to 8dcb72a Compare December 27, 2021 11:48

@Syn-McJ Syn-McJ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great work

@HashEngineering
HashEngineering merged commit a623341 into feature-coinbase-integration Dec 27, 2021
@HashEngineering
HashEngineering deleted the NMA-1134 branch January 18, 2022 06:51
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.

3 participants