Skip to content

Commit

Permalink
#31 modify font styles crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
sameer018 committed Oct 26, 2016
1 parent 770ec1a commit 532e5b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.animation.LinearInterpolator;
Expand Down Expand Up @@ -239,7 +238,10 @@ public void onConfigChange() {
((FolioPageFragment) page).reload();
if (position < mSpineReferences.size()) {
page = getFragment(position + 1);
((FolioPageFragment) page).reload();
if(page!=null) {
((FolioPageFragment) page).reload();
}

}
}

Expand Down
Binary file added sample/src/main/assets/1rosecsem1.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 Chair2.epub",0);
openEpub(FolioActivity.EpubSourceType.ASSESTS,"1rosecsem1.epub",0);
}
}
});
Expand Down

0 comments on commit 532e5b4

Please sign in to comment.