From 79cd8c691ea7af626a7510a6b1d9018fd7233574 Mon Sep 17 00:00:00 2001 From: inorichi Date: Fri, 5 Feb 2016 14:53:07 +0100 Subject: [PATCH] Minor changes --- .../eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.java | 2 +- .../tachiyomi/ui/reader/viewer/pager/PagerReaderFragment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.java b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.java index d6c5ba5a86..1175809f06 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.java +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.java @@ -36,7 +36,7 @@ public class ChaptersPresenter extends BasePresenter { @Inject PreferencesHelper preferences; @Inject DownloadManager downloadManager; - private Manga manga; + @State Manga manga; private Source source; private List chapters; @State boolean hasRequested; diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerReaderFragment.java b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerReaderFragment.java index 26892364d3..fa92e8c445 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerReaderFragment.java +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/pager/PagerReaderFragment.java @@ -78,7 +78,7 @@ public class PagerReaderFragment extends BaseFragment { imageView.setScaleAndCenter(imageView.getScale(), new PointF(0, 0)); break; case PagerReader.ALIGN_RIGHT: - imageView.setScaleAndCenter(imageView.getScale(), new PointF(99999f, 0)); + imageView.setScaleAndCenter(imageView.getScale(), new PointF(imageView.getSWidth(), 0)); break; case PagerReader.ALIGN_CENTER: PointF center = imageView.getCenter();