Repository navigation
feat(wallet): open ramp url directly for cny buy in privacy wallet - #6914
SeniorZhai wants to merge 1 commit into
Conversation
|
AI review done for Quality: Needs a fix for duplicate requests before merge. The Buy handler was verified in isolation, and the Android UI and live ramp flow remain unverified.
|
There was a problem hiding this comment.
AI review · Codex · 179918e
git diff --check passed. An isolated Kotlin check reproduced the CNY regression and confirmed that USD still shows the options sheet and Web3 still opens the ramp directly. The Gradle wrapper could not create its cache directory, and the installed Gradle could not resolve the Foojay plugin offline, so the app build could not be verified.
| } | ||
| } | ||
| if (isWeb3) { | ||
| if (isWeb3 || fiatMoneyViewModel.currency?.name.equals("CNY", ignoreCase = true)) { |
There was a problem hiding this comment.
Guard the direct CNY flow against repeat taps. Buy stays enabled during deposit-address lookup and while the spinner is visible. A Kotlin check using the PR’s click handler and stubbed network calls reproduced two ramp/weburl requests from two taps. Set an in-flight guard before the first suspension and clear it in finally.
Summary
CalculateFragment), when the selected fiat currency isCNY, tappingBuynow callsproceedToBuy()directly to open the ramp web URL instead of showing the payment method options sheet (Google Pay or Card/Bank Transfer), aligning with Buy token with card ios-app#2323.CNYcurrencies in Privacy Wallet continue to presentWalletBuyOptionsBottomSheetDialogFragment, and Web3 / Classic Wallet buy behavior remains unchanged.Verification
./gradlew :app:compileGooglePlayDebugKotlin— passed./gradlew :app:assembleGooglePlayDebug— passed