use color.transparent for webview compat mode
This commit is contained in:
parent
f5337db60f
commit
ba7ed268b6
@ -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"
|
||||||
|
@ -215,8 +215,12 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
|
|||||||
cssOverride = "body { background : transparent; }";
|
cssOverride = "body { background : transparent; }";
|
||||||
}
|
}
|
||||||
|
|
||||||
// seriously?
|
if (useTitleWebView) {
|
||||||
web.setBackgroundColor(Color.argb(1, 0, 0, 0));
|
web.setBackgroundColor(Color.TRANSPARENT);
|
||||||
|
} else {
|
||||||
|
// seriously?
|
||||||
|
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+";}";
|
||||||
|
@ -229,8 +229,13 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector.
|
|||||||
} else {
|
} else {
|
||||||
cssOverride = "body { background : transparent; }";
|
cssOverride = "body { background : transparent; }";
|
||||||
}
|
}
|
||||||
// seriously?
|
|
||||||
web.setBackgroundColor(Color.argb(1, 0, 0, 0));
|
if (useTitleWebView) {
|
||||||
|
web.setBackgroundColor(Color.TRANSPARENT);
|
||||||
|
} else {
|
||||||
|
// seriously?
|
||||||
|
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+";}";
|
||||||
|
Loading…
Reference in New Issue
Block a user