limit video features to kitkat+

This commit is contained in:
Andrew Dolgov 2014-11-25 18:24:29 +03:00
parent 3f0cb8d0ca
commit 1b5a57f55c
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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)) {