From 4ab63ea6b8480551c371b50cf242b5ac1a9bf6a5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 14 Nov 2013 22:37:58 +0400 Subject: [PATCH] add wide image workaround for 4.4 (getting real tired of this shit, google) --- AndroidManifest.xml | 4 ++-- src/org/fox/ttrss/ArticleFragment.java | 6 +++++- src/org/fox/ttrss/offline/OfflineArticleFragment.java | 5 +++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 69589fcf..cc212e7a 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="219" + android:versionName="1.23" > android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) { + cssOverride += "img { max-width : 99%; }"; + } + content = "" + "" + @@ -262,7 +266,7 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl "" + "" + "" + articleContent; diff --git a/src/org/fox/ttrss/offline/OfflineArticleFragment.java b/src/org/fox/ttrss/offline/OfflineArticleFragment.java index ae3343f5..da65cb2f 100644 --- a/src/org/fox/ttrss/offline/OfflineArticleFragment.java +++ b/src/org/fox/ttrss/offline/OfflineArticleFragment.java @@ -282,6 +282,10 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector. break; } + if (android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) { + cssOverride += "img { max-width : 99%; }"; + } + content = "" + "" + @@ -289,6 +293,7 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector. "" + "" + "" + articleContent;