diff options
author | Andrew Dolgov <[email protected]> | 2017-10-31 21:19:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-10-31 21:19:27 +0300 |
commit | 21d93178f28ffc005fbaf901e9b7de66d60077b3 (patch) | |
tree | 00b61dd3e72f3903a63237e29df327c722a918a3 | |
parent | 791a1685ab1dccc2e4a5990850a3d0cb8317b316 (diff) |
some random glide-related stuff
3 files changed, 4 insertions, 2 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryActivity.java index ae36e8de..646e52e5 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryActivity.java @@ -144,6 +144,8 @@ public class GalleryActivity extends CommonActivity { e.printStackTrace(); } catch (ExecutionException e) { e.printStackTrace(); + } catch (OutOfMemoryError e) { + e.printStackTrace(); } } else { diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryImageFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryImageFragment.java index 075b97c4..473601c9 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryImageFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryImageFragment.java @@ -57,6 +57,7 @@ public class GalleryImageFragment extends GalleryBaseFragment { Glide.with(this) .load(m_url) + .thumbnail(0.1f) //.dontAnimate() .diskCacheStrategy(DiskCacheStrategy.ALL) .skipMemoryCache(false) diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java index f8b616a3..5c77743a 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java @@ -262,7 +262,7 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis } refresh(); - + m_activity.invalidateOptionsMenu(); } @@ -563,7 +563,6 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis .bitmapTransform(new CropCircleTransformation(getActivity())) .diskCacheStrategy(DiskCacheStrategy.NONE) .skipMemoryCache(false) - .thumbnail(0.5f) .listener(new RequestListener<String, GlideDrawable>() { @Override public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) { |