Skip to content

Add swap percent suggestions on Android#653

Merged
DRadmir merged 4 commits into
mainfrom
wt3/android-percentage-input
Jul 9, 2026
Merged

Add swap percent suggestions on Android#653
DRadmir merged 4 commits into
mainfrom
wt3/android-percentage-input

Conversation

@DRadmir

@DRadmir DRadmir commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Adds 25/50/100% shortcuts on the swap pay input, matching iOS.

Closes #396

DRadmir and others added 2 commits July 8, 2026 16:06
Show 25/50/75/100% shortcuts above the keyboard on the swap pay input
while the amount is empty, mirroring iOS. Tapping a percent fills that
share of the balance and dismisses the keyboard.

Add a reusable PercentSuggestionsBar (replacing AutocloseSuggestionsBar)
and route Set Max through onSelectPercent(100).
@DRadmir DRadmir self-assigned this Jul 8, 2026
}

companion object {
val percentSuggestions = listOf(25, 50, 75, 100)

@gemdev111 gemdev111 Jul 8, 2026

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.

iOS has [25, 50, 100] in (SwapSceneViewModel.inputPercentSuggestions`)
Do we need parity for iOS for such case ?

DRadmir added 2 commits July 9, 2026 17:15
…e-input

# Conflicts:
#	android/features/perpetual/presents/src/main/kotlin/com/gemwallet/android/features/perpetual/views/autoclose/AutocloseScene.kt
@DRadmir DRadmir merged commit 6a92f2f into main Jul 9, 2026
1 check passed
@DRadmir DRadmir deleted the wt3/android-percentage-input branch July 9, 2026 13:22
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.

Add swap percent suggestions

2 participants