diff options
author | Andrew Dolgov <[email protected]> | 2014-11-25 18:24:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-11-25 18:24:29 +0300 |
commit | 1b5a57f55c26199a0a5d4c27736bc271deb90a53 (patch) | |
tree | eded766adb1f6d9763d113973a39de87e2bedbdc /org.fox.ttrss/src/main | |
parent | 3f0cb8d0cae49ab823c626e454514a6b1c3867ba (diff) |
limit video features to kitkat+
Diffstat (limited to 'org.fox.ttrss/src/main')
-rw-r--r-- | org.fox.ttrss/src/main/AndroidManifest.xml | 2 | ||||
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/org.fox.ttrss/src/main/AndroidManifest.xml b/org.fox.ttrss/src/main/AndroidManifest.xml index 85a51f98..344b7c02 100644 --- a/org.fox.ttrss/src/main/AndroidManifest.xml +++ b/org.fox.ttrss/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.fox.ttrss" - android:versionCode="287" + android:versionCode="288" android:versionName="1.79" > <uses-sdk 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 00055a64..ce62656c 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 @@ -6,6 +6,7 @@ import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Typeface; import android.net.Uri; +import android.os.Build; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.app.Fragment; @@ -372,10 +373,12 @@ public class ArticleFragment extends Fragment { articleContent = doc.toString(); } } else { - ws.setJavaScriptEnabled(true); - m_chromeClient = new FSVideoChromeClient(view); + if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { + ws.setJavaScriptEnabled(true); + m_chromeClient = new FSVideoChromeClient(view); - m_web.setWebChromeClient(m_chromeClient); + m_web.setWebChromeClient(m_chromeClient); + } } if (m_prefs.getBoolean("justify_article_text", true)) { |