Skip to content

Commit

Permalink
Merge pull request #29 from codetoart/master
Browse files Browse the repository at this point in the history
do not read books made by me, google doc, calibre, sigil and more solved
  • Loading branch information
Mahavir Jain committed Oct 25, 2016
2 parents fcc51f0 + 54a8975 commit ceb2abc
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 4 deletions.
Binary file added folioreader/res/drawable-xhdpi/icon_font_new.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public static enum EpubSourceType {

;

private RecyclerView mRecyclerViewMenu;
private DirectionalViewpager mFolioPageViewPager;
private FolioView mFolioView;
private ConfigView mConfigView;
Expand Down Expand Up @@ -177,7 +176,6 @@ private void loadBook() {
@Override
protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState);
mRecyclerViewMenu = (RecyclerView) findViewById(R.id.recycler_view_menu);
mFolioView = (FolioView) findViewById(R.id.folio_view);
mConfigView = (ConfigView) findViewById(R.id.config_view);
mAudioView = (AudioView) findViewById(R.id.audio_view);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public boolean accept(File dir, String name) {
};
// returns pathnames for files and directory
paths = f.listFiles(fileNameFilter);
if (paths != null) {
if (paths != null && paths.length>0) {
smilFile = new SmilFile();
smilFile.load(paths[0].getPath());
audioElementArrayList = smilFile.getAudioSegments();
Expand Down
Binary file added sample/src/main/assets/nuevounitled.epub
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void onClick(View v) {
if (ContextCompat.checkSelfPermission(HomeActivity.this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(HomeActivity.this, WRITE_EXTERNAL_STORAGE_PERMS, GALLERY_REQUEST);
} else {
openEpub(FolioActivity.EpubSourceType.ASSESTS,"The Silver Chair.epub",0);
openEpub(FolioActivity.EpubSourceType.ASSESTS,"nuevounitled.epub",0);
}
}
});
Expand Down

0 comments on commit ceb2abc

Please sign in to comment.