mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-07 03:07:26 +01:00
Fix some images not showing in center.
This commit is contained in:
parent
2f912a523e
commit
df18fc63ad
@ -223,6 +223,7 @@ public class ViewImageOrGifActivity extends AppCompatActivity implements SetAsWa
|
||||
view.setDoubleTapZoomDpi(240);
|
||||
view.setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED);
|
||||
view.setQuickScaleEnabled(true);
|
||||
view.resetScaleAndCenter();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -104,6 +104,7 @@ public class ViewImgurImageFragment extends Fragment {
|
||||
});
|
||||
imageView.setMinimumDpi(80);
|
||||
imageView.setDoubleTapZoomDpi(240);
|
||||
imageView.resetScaleAndCenter();
|
||||
|
||||
errorLinearLayout.setOnClickListener(view -> {
|
||||
progressBar.setVisibility(View.VISIBLE);
|
||||
|
@ -141,6 +141,7 @@ public class ViewRedditGalleryImageOrGifFragment extends Fragment {
|
||||
view.setDoubleTapZoomDpi(240);
|
||||
view.setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED);
|
||||
view.setQuickScaleEnabled(true);
|
||||
view.resetScaleAndCenter();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user