1
0
Fork 0

new dev bug: fixed the DictionaryLoader status handler again

This commit is contained in:
sspanak 2025-05-15 17:42:49 +03:00 committed by Dimo Karaivanov
parent 7fa4b45aee
commit f77f98aa51
2 changed files with 1 additions and 2 deletions

View file

@ -104,8 +104,6 @@ public class DictionaryLoader {
currentFile++; currentFile++;
} }
onStatusChange = null;
Timer.stop(IMPORT_TIMER); Timer.stop(IMPORT_TIMER);
} }

View file

@ -89,6 +89,7 @@ class ItemLoadDictionary extends ItemClickable {
private void setReady() { private void setReady() {
loader.setOnStatusChange(null);
item.setTitle(activity.getString(R.string.dictionary_load_title)); item.setTitle(activity.getString(R.string.dictionary_load_title));
item.setSummary(progressBar.isFailed() || progressBar.isCancelled() ? progressBar.getMessage() : ""); item.setSummary(progressBar.isFailed() || progressBar.isCancelled() ? progressBar.getMessage() : "");
} }