Skip to content

Commit 6d336ae

Browse files
author
Mahavir Jain
committed
fixed pmd bugs
1 parent 616f6a7 commit 6d336ae

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

folioreader/src/main/java/com/folioreader/activity/FolioActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import com.folioreader.smil.SmilFile;
4141
import com.folioreader.smil.TextElement;
4242
import com.folioreader.util.AppUtil;
43-
import com.folioreader.util.EpubManipulator;
4443
import com.folioreader.util.ProgressDialog;
4544
import com.folioreader.view.AudioView;
4645
import com.folioreader.view.ConfigView;

folioreader/src/main/java/com/folioreader/fragments/ContentsFragment.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ public class ContentsFragment extends Fragment {
3838
private int mSelectedChapterPosition;
3939
private boolean mIsNightMode;
4040

41-
42-
43-
public static ContentsFragment newInstance(Book book,int selectedChapterPosition) {
41+
public static ContentsFragment newInstance(Book book, int selectedChapterPosition) {
4442
ContentsFragment contentsFragment = new ContentsFragment();
4543
Bundle args = new Bundle();
4644
args.putSerializable(BOOK, book);

folioreader/src/main/java/com/folioreader/fragments/FolioPageFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public void endSelection() {
337337

338338
//String opfPath = AppUtil.getPathOPF(AppUtil.getFolioEpubFolderPath(mEpubFileName), mContext);
339339
//String baseUrl = "file://" + AppUtil.getFolioEpubFolderPath(mEpubFileName) + "/" + opfPath + "//";
340-
String baseUrl = "file://" + pageHref.substring(0, pageHref.lastIndexOf("/")) + "//";
340+
String baseUrl = "file://" + pageHref.substring(0, pageHref.lastIndexOf('/')) + "//";
341341
mWebview.loadDataWithBaseURL(baseUrl, htmlContent, "text/html", "UTF-8", null);
342342
((FolioActivity) getActivity()).setLastWebViewPosition(mScrollY);
343343
}
@@ -477,7 +477,7 @@ public void reload() {
477477
//String baseUrl = "file://" + AppUtil.getFolioEpubFolderPath(mEpubFileName) + "/" + opfPath + "//";
478478
String baseUrl = "file://" + epubFilePath + "/" + opfPath + "//";*/
479479

480-
String baseUrl = "file://" + pageHref.substring(0, pageHref.lastIndexOf("/")) + "//";
480+
String baseUrl = "file://" + pageHref.substring(0, pageHref.lastIndexOf('/')) + "//";
481481
webView.loadDataWithBaseURL(baseUrl, htmlContent, "text/html", "UTF-8", null);
482482
updatePagesLeftTextBg();
483483
}

0 commit comments

Comments
 (0)