inorichi 9 lat temu
rodzic
commit
79cd8c691e

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.java

@@ -36,7 +36,7 @@ public class ChaptersPresenter extends BasePresenter<ChaptersFragment> {
     @Inject PreferencesHelper preferences;
     @Inject DownloadManager downloadManager;
 
-    private Manga manga;
+    @State Manga manga;
     private Source source;
     private List<Chapter> chapters;
     @State boolean hasRequested;

+ 1 - 1
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();