Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
magocc committed Apr 22, 2022
1 parent 43ae962 commit e7ce514
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,14 @@ public void run() {
if (pageResult == null) {
Log.d(TAG, "Retrieving page failed.");
result.notImplemented();
} else {
mainThreadHandler.post(new Runnable() {
@Override
public void run() {
result.success(pageResult);
}
});
}
mainThreadHandler.post(new Runnable() {
@Override
public void run() {
result.success(pageResult);
}
});
break;
default:
result.notImplemented();
Expand Down Expand Up @@ -200,7 +201,6 @@ private String getPage(String filePath, @Nullable Integer pageNumber) {
ret = createTempPreview(bitmap, filePath, pageNumber);
} finally {
page.close();
renderer.close();
}
return ret;
} catch (Exception ex) {
Expand Down

0 comments on commit e7ce514

Please sign in to comment.