diff options
author | Andrew Dolgov <[email protected]> | 2014-11-25 13:59:08 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-11-25 13:59:08 +0300 |
commit | 7d9daaf4724fe871cad1a10f881cb3456e26961c (patch) | |
tree | 9299244384d42603af9fcce582e5898cf8d1a8fb /org.fox.ttrss/src | |
parent | 21bb9acdde0e4199b4ceb24084b668d91028e412 (diff) |
various fixes for 2.3
Diffstat (limited to 'org.fox.ttrss/src')
3 files changed, 8 insertions, 8 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java index 60fa881d..fe80d67e 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java @@ -361,6 +361,11 @@ public class ArticleFragment extends Fragment { for (Element video : videos) video.remove(); + videos = doc.select("iframe"); + + for (Element video : videos) + video.remove(); + articleContent = doc.toString(); } } else { @@ -431,7 +436,7 @@ public class ArticleFragment extends Fragment { // } - if (savedInstanceState == null && !m_activity.isCompatMode()) + if (savedInstanceState == null) m_web.loadDataWithBaseURL(baseUrl, content, "text/html", "utf-8", null); else m_web.restoreState(savedInstanceState); diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/PreferencesActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/PreferencesActivity.java index f42154a7..e6d300f0 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/PreferencesActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/PreferencesActivity.java @@ -13,8 +13,7 @@ public class PreferencesActivity extends PreferenceActivity { boolean compatMode = android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB; if (compatMode) { - findPreference("dim_status_bar").setEnabled(false); - findPreference("webview_hardware_accel").setEnabled(false); + findPreference("webview_hardware_accel").setEnabled(false); } if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN) { diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java index f58205a3..1e651a97 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java @@ -95,11 +95,7 @@ public class OfflineArticlePager extends Fragment { Log.d(TAG, "getItem: " + position); if (m_cursor.moveToPosition(position)) { - - if (m_prefs.getBoolean("dim_status_bar", false) && getView() != null && !m_activity.isCompatMode()) { - getView().setSystemUiVisibility(View.STATUS_BAR_HIDDEN); - } - + OfflineArticleFragment oaf = new OfflineArticleFragment(); oaf.initialize(m_cursor.getInt(m_cursor.getColumnIndex(BaseColumns._ID))); |