add wide image workaround for 4.4 (getting real tired of this shit,
google)
This commit is contained in:
parent
b5f28adf3c
commit
4ab63ea6b8
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.fox.ttrss"
|
||||
android:versionCode="218"
|
||||
android:versionName="1.22" >
|
||||
android:versionCode="219"
|
||||
android:versionName="1.23" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="8"
|
||||
|
@ -255,6 +255,10 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
|
||||
break;
|
||||
}
|
||||
|
||||
if (android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) {
|
||||
cssOverride += "img { max-width : 99%; }";
|
||||
}
|
||||
|
||||
content =
|
||||
"<html>" +
|
||||
"<head>" +
|
||||
@ -262,7 +266,7 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
|
||||
"<style type=\"text/css\">" +
|
||||
"body { padding : 0px; margin : 0px; }" +
|
||||
cssOverride +
|
||||
/* "img { max-width : 98%; height : auto; }" + */
|
||||
"body { line-height : 120%; }" +
|
||||
"</style>" +
|
||||
"</head>" +
|
||||
"<body>" + articleContent;
|
||||
|
@ -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 =
|
||||
"<html>" +
|
||||
"<head>" +
|
||||
@ -289,6 +293,7 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector.
|
||||
"<style type=\"text/css\">" +
|
||||
"body { padding : 0px; margin : 0px; }" +
|
||||
cssOverride +
|
||||
"body { line-height : 120%; }" +
|
||||
"</style>" +
|
||||
"</head>" +
|
||||
"<body>" + articleContent;
|
||||
|
Loading…
Reference in New Issue
Block a user