enable zoom controls in article webview, bump version

This commit is contained in:
Andrew Dolgov 2011-12-19 14:08:40 +03:00
parent 80a234cc15
commit eb2d8f4ad5
3 changed files with 10 additions and 8 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="43"
android:versionName="0.3.10" >
android:versionCode="44"
android:versionName="0.3.11" >
<uses-sdk android:minSdkVersion="7" />

View File

@ -24,6 +24,7 @@ import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;
@ -106,9 +107,9 @@ public class ArticleFragment extends Fragment {
String cssOverride = "";
//WebSettings ws = web.getSettings();
//ws.setSupportZoom(true);
//ws.setBuiltInZoomControls(true);
WebSettings ws = web.getSettings();
ws.setSupportZoom(true);
ws.setBuiltInZoomControls(true);
if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) {
cssOverride = "body { background : black; color : #e0e0e0}\n";

View File

@ -27,6 +27,7 @@ import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;
@ -111,9 +112,9 @@ public class OfflineArticleFragment extends Fragment {
String cssOverride = "";
//WebSettings ws = web.getSettings();
//ws.setSupportZoom(true);
//ws.setBuiltInZoomControls(true);
WebSettings ws = web.getSettings();
ws.setSupportZoom(true);
ws.setBuiltInZoomControls(true);
if (m_prefs.getString("theme", "THEME_DARK").equals("THEME_DARK")) {
cssOverride = "body { background : black; color : #e0e0e0}\n";