1
0
Fork 0

fixed progress not displayed on the Preferences screen, after auto-loading has been started

This commit is contained in:
sspanak 2024-02-20 14:22:38 +02:00 committed by Dimo Karaivanov
parent 4907671aa3
commit f6a788ee63
2 changed files with 2 additions and 2 deletions

View file

@ -104,7 +104,7 @@ public class DictionaryLoader {
public static void load(Context context, Language language) { public static void load(Context context, Language language) {
DictionaryLoadingBar progressBar = new DictionaryLoadingBar(context); DictionaryLoadingBar progressBar = DictionaryLoadingBar.getInstance(context);
getInstance(context).setOnStatusChange(status -> progressBar.show(context, status)); getInstance(context).setOnStatusChange(status -> progressBar.show(context, status));
self.load(new ArrayList<Language>() {{ add(language); }}); self.load(new ArrayList<Language>() {{ add(language); }});
} }

View file

@ -53,7 +53,7 @@ public class DictionaryLoadingBar {
} }
public DictionaryLoadingBar(Context context) { private DictionaryLoadingBar(Context context) {
resources = context.getResources(); resources = context.getResources();
manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);