Skip to content

Add swap percent suggestions on Android#653

Open
DRadmir wants to merge 2 commits into
mainfrom
wt3/android-percentage-input
Open

Add swap percent suggestions on Android#653
DRadmir wants to merge 2 commits into
mainfrom
wt3/android-percentage-input

Conversation

@DRadmir

@DRadmir DRadmir commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

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

Screenshot_1783507500

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 ?

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