diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/org/fox/ttrss/ArticleFragment.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/fox/ttrss/ArticleFragment.java b/src/org/fox/ttrss/ArticleFragment.java index 4a3877d5..de15d254 100644 --- a/src/org/fox/ttrss/ArticleFragment.java +++ b/src/org/fox/ttrss/ArticleFragment.java @@ -97,10 +97,15 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl final View view = inflater.inflate(R.layout.article_fragment, container, false); - View content = view.findViewById(R.id.content); + WebView content = (WebView) view.findViewById(R.id.content); if (content != null) content.setVisibility(View.INVISIBLE); + // prevent flicker in ics + if (android.os.Build.VERSION.SDK_INT >= 11) { + content.setLayerType(View.LAYER_TYPE_SOFTWARE, null); + } + new Handler().postDelayed(new Runnable() { @Override public void run() { @@ -205,11 +210,6 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl TypedValue tv = new TypedValue(); getActivity().getTheme().resolveAttribute(R.attr.linkColor, tv, true); - // prevent flicker in ics - if (android.os.Build.VERSION.SDK_INT >= 11) { - web.setLayerType(View.LAYER_TYPE_SOFTWARE, null); - } - if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) { cssOverride = "body { background : transparent; color : #e0e0e0}"; } else if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK_GRAY")) { |