mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-13 17:38:42 -04:00
Update core/src/main/java/org/kiwix/kiwixmobile/core/main/DocumentParser.java
Co-Authored-By: Abdul Wadood <abdulwd97@gmail.com>
This commit is contained in:
parent
2eb839ed6a
commit
e1ec27964f
@ -81,10 +81,8 @@ public class DocumentParser {
|
|||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public void stop() {
|
public void stop() {
|
||||||
List<DocumentSection> listToBeSentToMainThread = new ArrayList<>(sections);
|
List<DocumentSection> listToBeSentToMainThread = new ArrayList<>(sections);
|
||||||
listToBeSentToMainThread.addAll(sections);
|
|
||||||
new Handler(Looper.getMainLooper()).post(() ->
|
new Handler(Looper.getMainLooper()).post(() ->
|
||||||
listener.sectionsLoaded(title, listToBeSentToMainThread));
|
listener.sectionsLoaded(title, listToBeSentToMainThread));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user