CountryCodePickerProject icon indicating copy to clipboard operation
CountryCodePickerProject copied to clipboard

PhoneNumberValidityChangeListener not called when navigate back

Open djardon opened this issue 5 years ago • 1 comments

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)

djardon avatar Jul 14 '20 15:07 djardon

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 .

hbb20 avatar Jul 14 '20 16:07 hbb20