-
Notifications
You must be signed in to change notification settings - Fork 768
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
Conversation
9f24d39
to
b6f80cb
Compare
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.
Just some few remarks about code clarity
vector/src/main/java/im/vector/app/features/call/dialpad/DialPadFragment.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/call/dialpad/DialPadFragment.kt
Outdated
Show resolved
Hide resolved
b6f80cb
to
487b97c
Compare
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()) { |
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.
Can't you just return number + postDial
? Should be ok if postDial
is empty, no?
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.
Probably :O
487b97c
to
1bb32ef
Compare
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)