-
Notifications
You must be signed in to change notification settings - Fork 716
Add setting to toggle keypad layout between numeric & standard #3609
Conversation
**/ | ||
|
||
val context = LocalContext.current | ||
val features = EntryPointAccessors.fromApplication( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this must be remember {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would also break previews and screenshot tests but such doesn't seem to exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my testing I didn't notice it breaking previews, and yes my bad it should be remember
Overall LGTM - just add remember the DI instance creation |
@p42rthicle @ILIYANGERMANOV How about making it a one-selection option? I'd like to see something like a new bottom menu dialog on Tap, like on the transaction entry screen: You could remove the switch and make the tab clickable, which would trigger a bottom menu like the one shown above, where we could choose between numeric and default layouts. If you're able to implement this properly, it would greatly improve the possibilities for this screen. |
That's a good suggestion, we can extend |
@nvllz Do we have a we have a tab next to the keypad where we can select the type? |
Idk what you mean here. I suggested transforming this setting to enum list to reflect something like the transaction type selection. It would allow users to choose between the default and numeric layout, which is just more natural for this type of setting. Now it's just less intuitive. It would require some additional work on your part, but would also allow others to use your code and implement other selection-based tweaks in the ivyfeatures screen more easily, thus further developing the app. Just an idea, if you're not up to it, I'll create a feature request ticket and maybe someone else will pick it up after a successful merge of this PR. |
Thanks for clarifying, I understand that we want to have an enum in place rather than a simple toggle for easy understanding for the user. What I wanted to ask was do we keep the setting to tweak this under the advanced features in the setting (where it is currently) or do we move this setting to the keypad layout itself where we have an icon upon clicking which we show the 2 option which the user can chose from). This way they can easily toggle this without going into settings. If so, I will pick this up as this won't be a major change. And is easily doable. Thanks! |
It's up to @ILIYANGERMANOV, but in my opinion keeping this setting here would be better. Thanks for your work! |
Pull request (PR) checklist
Please check if your pull request fulfills the following requirements:
Screen recording of your changes (if applicable):
standard_keypad_layout_setting.mp4
What's changed?
We just had the calculator like numeric pad in the keypad or the
AmountKeyboard
. No you can toggle the setting in settings and switch between standard and numeric style keypad.Describe with a few bullets what's new:
Risk factors
AmountKeyboard
is self-contained, making it easy to reuse without passing parameters.What may go wrong if we merge your PR?
In what cases won't your code work?
Does this PR close any GitHub issues?
Troubleshooting GitHub Actions (CI) failures ❌
Pull request checks failing? Read our CI Troubleshooting guide.