different workaround for webview flicker
This commit is contained in:
parent
5c9c2a8ca8
commit
da483e12a6
@ -18,6 +18,7 @@ import android.annotation.SuppressLint;
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.graphics.Color;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
@ -209,7 +210,9 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
|
||||
} else {
|
||||
cssOverride = "body { background : transparent; }";
|
||||
}
|
||||
web.setBackgroundColor(getResources().getColor(android.R.color.transparent));
|
||||
|
||||
// seriously?
|
||||
web.setBackgroundColor(Color.argb(1, 0, 0, 0));
|
||||
|
||||
String hexColor = String.format("#%06X", (0xFFFFFF & tv.data));
|
||||
cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}";
|
||||
|
@ -19,6 +19,7 @@ import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.database.Cursor;
|
||||
import android.graphics.Color;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
@ -224,7 +225,8 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector.
|
||||
} else {
|
||||
cssOverride = "body { background : transparent; }";
|
||||
}
|
||||
web.setBackgroundColor(getResources().getColor(android.R.color.transparent));
|
||||
// seriously?
|
||||
web.setBackgroundColor(Color.argb(1, 0, 0, 0));
|
||||
|
||||
String hexColor = String.format("#%06X", (0xFFFFFF & tv.data));
|
||||
cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}";
|
||||
|
Loading…
Reference in New Issue
Block a user