How to remove locale change listener?
Closed this issue · 3 comments
gitam2869 commented
How to remove locale change listener?
B3nedikt commented
@gitam2869 You can just remove it like this:
AppLocale.addLocaleChangedListener(listener)
AppLocale.removeLocaleChangedListener(listener)
Does this help you?
gitam2869 commented
@B3nedikt AppLocale.removeLocaleChangedListener(listener) if we call this function is ok, but internally it's adding listener only in list. Please check AppLocale file.
B3nedikt commented
@gitam2869 You are right, this is a bug...
I just fixed it with AppLocale 3.0.0, please try it out :)