limit video features to kitkat+
This commit is contained in:
parent
3f0cb8d0ca
commit
1b5a57f55c
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.fox.ttrss"
|
package="org.fox.ttrss"
|
||||||
android:versionCode="287"
|
android:versionCode="288"
|
||||||
android:versionName="1.79" >
|
android:versionName="1.79" >
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
|
@ -6,6 +6,7 @@ import android.content.Intent;
|
|||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.graphics.Typeface;
|
import android.graphics.Typeface;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
import android.support.v4.app.Fragment;
|
import android.support.v4.app.Fragment;
|
||||||
@ -372,10 +373,12 @@ public class ArticleFragment extends Fragment {
|
|||||||
articleContent = doc.toString();
|
articleContent = doc.toString();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
||||||
ws.setJavaScriptEnabled(true);
|
ws.setJavaScriptEnabled(true);
|
||||||
m_chromeClient = new FSVideoChromeClient(view);
|
m_chromeClient = new FSVideoChromeClient(view);
|
||||||
|
|
||||||
m_web.setWebChromeClient(m_chromeClient);
|
m_web.setWebChromeClient(m_chromeClient);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_prefs.getBoolean("justify_article_text", true)) {
|
if (m_prefs.getBoolean("justify_article_text", true)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user