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