use color.transparent for webview compat mode

This commit is contained in:
Andrew Dolgov 2013-10-21 15:00:19 +04:00
parent f5337db60f
commit ba7ed268b6
3 changed files with 15 additions and 6 deletions

View File

@ -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="213" android:versionCode="214"
android:versionName="1.17" > android:versionName="1.18" >
<uses-sdk <uses-sdk
android:minSdkVersion="8" android:minSdkVersion="8"

View File

@ -215,8 +215,12 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
cssOverride = "body { background : transparent; }"; cssOverride = "body { background : transparent; }";
} }
if (useTitleWebView) {
web.setBackgroundColor(Color.TRANSPARENT);
} else {
// seriously? // seriously?
web.setBackgroundColor(Color.argb(1, 0, 0, 0)); web.setBackgroundColor(Color.argb(1, 0, 0, 0));
}
String hexColor = String.format("#%06X", (0xFFFFFF & tv.data)); String hexColor = String.format("#%06X", (0xFFFFFF & tv.data));
cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}"; cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}";

View File

@ -229,8 +229,13 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector.
} else { } else {
cssOverride = "body { background : transparent; }"; cssOverride = "body { background : transparent; }";
} }
if (useTitleWebView) {
web.setBackgroundColor(Color.TRANSPARENT);
} else {
// seriously? // seriously?
web.setBackgroundColor(Color.argb(1, 0, 0, 0)); web.setBackgroundColor(Color.argb(1, 0, 0, 0));
}
String hexColor = String.format("#%06X", (0xFFFFFF & tv.data)); String hexColor = String.format("#%06X", (0xFFFFFF & tv.data));
cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}"; cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}";