various fixes for 2.3
This commit is contained in:
parent
21bb9acdde
commit
7d9daaf472
@ -358,6 +358,11 @@ public class ArticleFragment extends Fragment {
|
|||||||
// thanks webview for crashing on <video> tag
|
// thanks webview for crashing on <video> tag
|
||||||
Elements videos = doc.select("video");
|
Elements videos = doc.select("video");
|
||||||
|
|
||||||
|
for (Element video : videos)
|
||||||
|
video.remove();
|
||||||
|
|
||||||
|
videos = doc.select("iframe");
|
||||||
|
|
||||||
for (Element video : videos)
|
for (Element video : videos)
|
||||||
video.remove();
|
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);
|
m_web.loadDataWithBaseURL(baseUrl, content, "text/html", "utf-8", null);
|
||||||
else
|
else
|
||||||
m_web.restoreState(savedInstanceState);
|
m_web.restoreState(savedInstanceState);
|
||||||
|
@ -13,7 +13,6 @@ public class PreferencesActivity extends PreferenceActivity {
|
|||||||
boolean compatMode = android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB;
|
boolean compatMode = android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB;
|
||||||
|
|
||||||
if (compatMode) {
|
if (compatMode) {
|
||||||
findPreference("dim_status_bar").setEnabled(false);
|
|
||||||
findPreference("webview_hardware_accel").setEnabled(false);
|
findPreference("webview_hardware_accel").setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,10 +96,6 @@ public class OfflineArticlePager extends Fragment {
|
|||||||
|
|
||||||
if (m_cursor.moveToPosition(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();
|
OfflineArticleFragment oaf = new OfflineArticleFragment();
|
||||||
oaf.initialize(m_cursor.getInt(m_cursor.getColumnIndex(BaseColumns._ID)));
|
oaf.initialize(m_cursor.getInt(m_cursor.getColumnIndex(BaseColumns._ID)));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user