Skip to content

Hide missing localized market descriptions#6442

Closed
SeniorZhai wants to merge 1 commit into
masterfrom
codex/hide-missing-market-description
Closed

Hide missing localized market descriptions#6442
SeniorZhai wants to merge 1 commit into
masterfrom
codex/hide-missing-market-description

Conversation

@SeniorZhai

Copy link
Copy Markdown
Member

Summary

  • Remove English and arbitrary non-empty fallback for market descriptions.
  • Hide the market about section when the current locale has no non-blank description.

Verification

  • ./gradlew :app:compileGooglePlayDebugKotlin

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the market details “About” section so it only displays when a non-blank description exists for the user’s current locale, removing the previous English/first-non-empty fallback behavior.

Changes:

  • Replaced the inline fallback chain for market descriptions with a dedicated locale-selection helper.
  • Updated UI binding to hide the “About” container when the localized description is missing/blank.
  • Added a new helper file to centralize localized description selection logic.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
app/src/main/java/one/mixin/android/ui/wallet/MarketDetailsFragment.kt Switches description selection to localized-only behavior and hides the About section when absent.
app/src/main/java/one/mixin/android/ui/wallet/MarketDescription.kt Introduces a helper for selecting the localized market description.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +6
fun selectLocalizedMarketDescription(
descriptions: Map<String, String>,
language: String,
): String? = descriptions[language]?.takeIf { it.isNotBlank() }
@SeniorZhai SeniorZhai closed this Jun 8, 2026
@SeniorZhai SeniorZhai deleted the codex/hide-missing-market-description branch June 8, 2026 15:02
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.

2 participants