fixed progress not displayed on the Preferences screen, after auto-loading has been started
This commit is contained in:
parent
4907671aa3
commit
f6a788ee63
2 changed files with 2 additions and 2 deletions
|
|
@ -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); }});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue