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:
Seán Mac Gillicuddy 2020-01-30 10:18:23 +00:00 committed by GitHub
parent 2eb839ed6a
commit e1ec27964f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,10 +81,8 @@ public class DocumentParser {
@SuppressWarnings("unused")
public void stop() {
List<DocumentSection> listToBeSentToMainThread = new ArrayList<>(sections);
listToBeSentToMainThread.addAll(sections);
new Handler(Looper.getMainLooper()).post(() ->
listener.sectionsLoaded(title, listToBeSentToMainThread));
}
}
}