B3nedikt/AppLocale

How to remove locale change listener?

Closed this issue · 3 comments

How to remove locale change listener?

@gitam2869 You can just remove it like this:

AppLocale.addLocaleChangedListener(listener)
AppLocale.removeLocaleChangedListener(listener)

Does this help you?

@B3nedikt AppLocale.removeLocaleChangedListener(listener) if we call this function is ok, but internally it's adding listener only in list. Please check AppLocale file.

@gitam2869 You are right, this is a bug...

I just fixed it with AppLocale 3.0.0, please try it out :)