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

Commit e969514

Browse files
committed
Removed the check for EPUB3 opening it.
1 parent 8f78132 commit e969514

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

SDKLauncher-Android/src/org/readium/sdk/android/launcher/ContainerList.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,10 @@ public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
9191
String path = Environment.getExternalStorageDirectory().getAbsolutePath()
9292
+ "/" + testPath + "/" + list.get(arg2);
9393

94-
if(EPub3.isEpub3Book(path)) {
95-
Container container = EPub3.openBook(path);
96-
ContainerHolder.getInstance().put(container.getNativePtr(), container);
97-
intent.putExtra(Constants.CONTAINER_ID, container.getNativePtr());
98-
startActivity(intent);
99-
} else {
100-
Toast.makeText(context, "Sorry, but only EPUB3 books are accepted for now...", Toast.LENGTH_LONG).show();
101-
}
94+
Container container = EPub3.openBook(path);
95+
ContainerHolder.getInstance().put(container.getNativePtr(), container);
96+
intent.putExtra(Constants.CONTAINER_ID, container.getNativePtr());
97+
startActivity(intent);
10298
}
10399
});
104100

0 commit comments

Comments
 (0)