@Override
 public void onPageFlipEnd(QuranPageCurlView pageView, int flipDirection) {
   if (flipDirection == OnPageFlipListener.NEXT_PAGE) {
     loadNextPage(pageView);
   } else if (flipDirection == OnPageFlipListener.PREVIOUS_PAGE) {
     loadPreviousPage(pageView);
   }
   QuranSettings.getInstance().setLastPage(mCurrentPageNumber);
   QuranSettings.save(mContext.prefs);
 }
 public void jumpToPage(int page) {
   if (page <= ApplicationConstants.PAGES_FIRST) {
     page = ApplicationConstants.PAGES_FIRST;
     mQuranPage.addNextPage(null);
     mQuranPage.addNextPage(createPage(page));
     mQuranPage.addNextPage(createPage(page + 1));
   } else if (page >= ApplicationConstants.PAGES_LAST) {
     page = ApplicationConstants.PAGES_LAST;
     mQuranPage.addPreviousPage(null);
     mQuranPage.addPreviousPage(createPage(page));
     mQuranPage.addPreviousPage(createPage(page - 1));
   } else {
     mQuranPage.addNextPage(createPage(page - 1));
     mQuranPage.addNextPage(createPage(page));
     mQuranPage.addNextPage(createPage(page + 1));
   }
   mCurrentPageNumber = page;
   QuranSettings.getInstance().setLastPage(page);
   QuranSettings.save(mContext.prefs);
   mQuranPage.refresh(true);
 }