From eb2d8f4ad590a6e08c8c8745dec112eed64fa2a2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 19 Dec 2011 14:08:40 +0300 Subject: [PATCH] enable zoom controls in article webview, bump version --- AndroidManifest.xml | 4 ++-- src/org/fox/ttrss/ArticleFragment.java | 7 ++++--- src/org/fox/ttrss/OfflineArticleFragment.java | 7 ++++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 4e621e15..73b86a7f 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="44" + android:versionName="0.3.11" > diff --git a/src/org/fox/ttrss/ArticleFragment.java b/src/org/fox/ttrss/ArticleFragment.java index 1d263fc5..ff26fc52 100644 --- a/src/org/fox/ttrss/ArticleFragment.java +++ b/src/org/fox/ttrss/ArticleFragment.java @@ -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"; diff --git a/src/org/fox/ttrss/OfflineArticleFragment.java b/src/org/fox/ttrss/OfflineArticleFragment.java index 4dc7a582..4886ecc0 100644 --- a/src/org/fox/ttrss/OfflineArticleFragment.java +++ b/src/org/fox/ttrss/OfflineArticleFragment.java @@ -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";