Skip to content
Snippets Groups Projects
Commit c1a62f0d authored by Matyáš Latner's avatar Matyáš Latner
Browse files

#1 Fixed locale change event fire for same system and forced locale

parent 40d71e35
Branches
Tags
No related merge requests found
......@@ -171,7 +171,7 @@ public class TablexiaSettings {
selectedLocale = localeDefinition;
preferences.putString(LOCALE_KEY, localeDefinition.getLocaleKey());
preferences.flush();
if (lastLocale.getLocale() != localeDefinition.getLocale()) {
if (!lastLocale.getLocale().getLanguage().equals(localeDefinition.getLocale().getLanguage())) {
ApplicationBus.getInstance().post(new LocaleChangedEvent(localeDefinition)).asynchronously();
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment