Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

container open error message. #76

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,

EPub3.setSdkErrorHandler(ContainerList.this);
Container container = EPub3.openBook(path);
if (container == null) {
SdkErrorHandlerMessagesCompleted nothingCallback = new SdkErrorHandlerMessagesCompleted(null) {
@Override
public void once() {
// do nothing
}
};
popSdkErrorHandlerMessage(context, nothingCallback);
return;
}
EPub3.setSdkErrorHandler(null);

ContainerHolder.getInstance().put(container.getNativePtr(), container);
Expand Down