From 172ee068ac5fde11ec46bfec438800463f366dbd Mon Sep 17 00:00:00 2001 From: Karol Barenicki Date: Sat, 3 Jan 2015 01:25:03 +0100 Subject: [PATCH] Not allow to zoom in the internal pages. This commit prevents an user from zooming in the Home Page, Bookmarks Page and History Page. On some devices, for examlpe, some tablets with low dpi, tapping the search bar in the Home Page would zoom the browser in about 25% and then open the keyboard. That looks weird. Also, the Lightning Browser does not allow zooming in the Settings menu and the Tabs/Bookmarks sidebars. Allowing the user to zoom in one place of the UI and not in the other is inconsitent. --- src/acr/browser/lightning/BookmarkPage.java | 2 +- src/acr/browser/lightning/HistoryPage.java | 2 +- src/acr/browser/lightning/HomepageVariables.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/acr/browser/lightning/BookmarkPage.java b/src/acr/browser/lightning/BookmarkPage.java index 80ce4ee..6660132 100644 --- a/src/acr/browser/lightning/BookmarkPage.java +++ b/src/acr/browser/lightning/BookmarkPage.java @@ -7,7 +7,7 @@ public class BookmarkPage { public static final String FILENAME = "bookmarks.html"; - public static final String HEADING = "" + public static final String HEADING = "<!DOCTYPE html><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta content=\"en-us\" http-equiv=\"Content-Language\" /><meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\"><title>" + BrowserApp.getAppContext().getString(R.string.action_bookmarks) + "
"; diff --git a/src/acr/browser/lightning/HistoryPage.java b/src/acr/browser/lightning/HistoryPage.java index 3a7529c..e70f7bb 100644 --- a/src/acr/browser/lightning/HistoryPage.java +++ b/src/acr/browser/lightning/HistoryPage.java @@ -15,7 +15,7 @@ public class HistoryPage { private static final String FILENAME = "history.html"; - private static final String HEADING = "" + private static final String HEADING = "<!DOCTYPE html><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta content=\"en-us\" http-equiv=\"Content-Language\" /><meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\"><title>" + BrowserApp.getAppContext().getString(R.string.action_history) + "
"; diff --git a/src/acr/browser/lightning/HomepageVariables.java b/src/acr/browser/lightning/HomepageVariables.java index ed2992a..0856f23 100644 --- a/src/acr/browser/lightning/HomepageVariables.java +++ b/src/acr/browser/lightning/HomepageVariables.java @@ -9,7 +9,7 @@ public class HomepageVariables { + "" + "" + "" - + "" + + "" + "" + BrowserApp.getAppContext().getString(R.string.home) + ""