various fixes for 2.3

This commit is contained in:
Andrew Dolgov 2014-11-25 13:59:08 +03:00
parent 21bb9acdde
commit 7d9daaf472
3 changed files with 8 additions and 8 deletions

View File

@ -358,6 +358,11 @@ public class ArticleFragment extends Fragment {
// thanks webview for crashing on <video> tag
Elements videos = doc.select("video");
for (Element video : videos)
video.remove();
videos = doc.select("iframe");
for (Element video : videos)
video.remove();
@ -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);

View File

@ -13,7 +13,6 @@ 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);
}

View File

@ -96,10 +96,6 @@ public class OfflineArticlePager extends Fragment {
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)));