PhoneNumberValidityChangeListener not called when navigate back
When navigate to another Fragment and then go back to phone Country Code selector fragment, not working phone formatter and phoneNumberValidatorChangeListener aren't call ever.
Set both on onViewCreated method:
layoutMobileFields.etPhoneCountryCode.setPhoneNumberValidityChangeListener
layoutMobileFields.etPhoneCountryCode.registerCarrierNumberEditText(layoutMobileFields.etPhoneNumber as EditText)
This is when you are using a nav graph. One fragment has ccp with phone edit text. This work well until you navigate to next fragment and come back. Did I understand that right?
Can you share a video recording and/or ccp fragment code?
Thanks, Harsh Bhakta
On Tue, Jul 14, 2020 at 09:45 David Jardón Peinado [email protected] wrote:
When navigate to another Fragment and then go back to phone Country Code selector fragment, not working phone formatter and phoneNumberValidatorChangeListener aren't call ever.
Set both on onViewCreated method:
layoutMobileFields.etPhoneCountryCode.setPhoneNumberValidityChangeListener layoutMobileFields.etPhoneCountryCode.registerCarrierNumberEditText(layoutMobileFields.etPhoneNumber as EditText)— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hbb20/CountryCodePickerProject/issues/421, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFQ32FZE36JEG3GQVMUPV3R3R4S7ANCNFSM4OZUWGPA .