diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 8d7b08db..6bfa76ba 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -4,7 +4,7 @@ android:versionCode="72" android:versionName="0.5.7" > - + diff --git a/src/org/fox/ttrss/ArticleFragment.java b/src/org/fox/ttrss/ArticleFragment.java index a83ffdef..231fc12d 100644 --- a/src/org/fox/ttrss/ArticleFragment.java +++ b/src/org/fox/ttrss/ArticleFragment.java @@ -12,6 +12,7 @@ import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; +import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.content.Intent; @@ -73,6 +74,7 @@ public class ArticleFragment extends Fragment { } + @SuppressLint("NewApi") @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { @@ -141,7 +143,7 @@ public class ArticleFragment extends Fragment { if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) { cssOverride = "body { background : transparent; color : #e0e0e0}"; //view.setBackgroundColor(android.R.color.black); - web.setBackgroundColor(android.R.color.transparent); + web.setBackgroundColor(getResources().getColor(android.R.color.transparent)); } else { cssOverride = ""; } diff --git a/src/org/fox/ttrss/OfflineArticleFragment.java b/src/org/fox/ttrss/OfflineArticleFragment.java index 4387a623..4cd1267d 100644 --- a/src/org/fox/ttrss/OfflineArticleFragment.java +++ b/src/org/fox/ttrss/OfflineArticleFragment.java @@ -131,7 +131,7 @@ public class OfflineArticleFragment extends Fragment { if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) { cssOverride = "body { background : transparent; color : #e0e0e0}"; //view.setBackgroundColor(android.R.color.black); - web.setBackgroundColor(android.R.color.transparent); + web.setBackgroundColor(getResources().getColor(android.R.color.transparent)); } else { cssOverride = ""; }