Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/fga/dial pad improvements #3516

Merged
merged 3 commits into from
Jun 17, 2021
Merged

Conversation

ganfra
Copy link
Member

@ganfra ganfra commented Jun 16, 2021

This PR handles:
Enabling cursor, so you can add/remove digits everywhere.
Fixing the formatting as you type
Adding paste number when clicking on ok button if EditText is empty (mimics Android DialPad)

@ganfra ganfra force-pushed the feature/fga/dial_pad_improvements branch from 9f24d39 to b6f80cb Compare June 16, 2021 18:24
@ganfra ganfra requested a review from bmarty June 16, 2021 18:24
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Just some few remarks about code clarity

@ganfra ganfra force-pushed the feature/fga/dial_pad_improvements branch from b6f80cb to 487b97c Compare June 17, 2021 08:20
val number = PhoneNumberUtils.formatNumber(networkPortion, null, regionCode) ?: networkPortion
// Also retrieve the post dial portion of the provided data, so that the entire dial string can be reconstituted
val postDial = PhoneNumberUtils.extractPostDialPortion(dialString)
return if (postDial.isEmpty()) {
Copy link
Member

Choose a reason for hiding this comment

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

Can't you just return number + postDial? Should be ok if postDial is empty, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably :O

@ganfra ganfra force-pushed the feature/fga/dial_pad_improvements branch from 487b97c to 1bb32ef Compare June 17, 2021 10:43
@bmarty bmarty merged commit da19992 into develop Jun 17, 2021
@bmarty bmarty deleted the feature/fga/dial_pad_improvements branch June 17, 2021 12:31
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