You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing the same situation. I would like to store in my database the country code extracted from the chosen country (I can do that), and after, when I retrieve the country code, display the country name (without using the . It would be awesome if this class was usable outside the package.
As a temporary workaround for my case, I created a class com.hbb20.MyCountry (which is in the same package so accessible and containing the following code:
Yes, you are right. But as I said, it is only a temporary workaround. By doing this I don't need to fork, sync the changes and publish my own library to maven, which is time consuming compared to the 10 minutes I took to make this class.
It works for now and with some luck the author will open the class so I can get rid of this class in the near future :)
Sorry for the trouble it is causing to you people. As this was not my own use case so I never realized need to make country class open. I will open this class and release the new version (along with other pending features) soon. If you can wait for a week then it will good enough for me.
Actually, your library is much more powerful than just letting us pick some country or write number formatted as we type. You solve such a headache with your library :p
Please try v2.1.1. Please note that name of the class is changed to CCPCountry from Country to avoid any possible confusion. Please let me know if you want something else. Thanks
Activity
Flo354 commentedon Dec 7, 2017
Hi,
I am facing the same situation. I would like to store in my database the country code extracted from the chosen country (I can do that), and after, when I retrieve the country code, display the country name (without using the . It would be awesome if this class was usable outside the package.
As a temporary workaround for my case, I created a class com.hbb20.MyCountry (which is in the same package so accessible and containing the following code:
user32338 commentedon Dec 7, 2017
so, this is not good))
if the structure changes, you will have to change this class((
I think better do fork..
Flo354 commentedon Dec 7, 2017
Yes, you are right. But as I said, it is only a temporary workaround. By doing this I don't need to fork, sync the changes and publish my own library to maven, which is time consuming compared to the 10 minutes I took to make this class.
It works for now and with some luck the author will open the class so I can get rid of this class in the near future :)
hbb20 commentedon Dec 7, 2017
Sorry for the trouble it is causing to you people. As this was not my own use case so I never realized need to make country class open. I will open this class and release the new version (along with other pending features) soon. If you can wait for a week then it will good enough for me.
Flo354 commentedon Dec 7, 2017
Thanks @hbb20 !
Actually, your library is much more powerful than just letting us pick some country or write number formatted as we type. You solve such a headache with your library :p
hbb20 commentedon Dec 14, 2017
Please try v2.1.1. Please note that name of the class is changed to CCPCountry from Country to avoid any possible confusion. Please let me know if you want something else. Thanks
Flo354 commentedon Dec 14, 2017
Thanks @hbb20, works well!