[android] allow image transformations in full-screen view

to prevent crashes from huge images
This commit is contained in:
Torsten Grote
2018-12-14 19:28:35 -02:00
parent 039c6edb66
commit d3b6f484c8

View File

@@ -114,11 +114,10 @@ public class ImageFragment extends Fragment {
// Load Image
GlideApp.with(this)
.load(attachment)
// TODO allow if < maxTextureSize ?
// TODO allow if size < maxTextureSize ?
// .override(SIZE_ORIGINAL)
.diskCacheStrategy(NONE)
.error(R.drawable.ic_image_broken)
.dontTransform()
.addListener(listener)
.into(photoView);