summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-08-02 12:56:06 -0700
committerMichael Kolb <kolby@google.com>2011-08-02 13:00:49 -0700
commit42c0c063206ed37ab63b887348369650b51942e9 (patch)
treef6adbb0c1b8302b5b173dbc0100a2c9b31aba854 /src
parentbd4c00a61a44637e04efeb837da490a2b51b11c1 (diff)
downloadpackages_apps_Browser-42c0c063206ed37ab63b887348369650b51942e9.zip
packages_apps_Browser-42c0c063206ed37ab63b887348369650b51942e9.tar.gz
packages_apps_Browser-42c0c063206ed37ab63b887348369650b51942e9.tar.bz2
fix url action mode
Bug: 5093025 The url bar is kept visible now It's still not perfect, because the url bar gets pushed down under the user's finger Change-Id: I7142cd1f442bf7e3b53af5aac150defda68661ed
Diffstat (limited to 'src')
-rw-r--r--src/com/android/browser/Controller.java2
-rw-r--r--src/com/android/browser/PhoneUi.java4
-rw-r--r--src/com/android/browser/UI.java2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index f20968b..0d22af0 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -1812,7 +1812,7 @@ public class Controller
void onActionModeStarted(ActionMode mode) {
mUi.onActionModeStarted(mode);
mActionMode = mode;
- if (mSimulateActionBarOverlayMode) {
+ if (mSimulateActionBarOverlayMode && !mUi.isEditingUrl()) {
WebView web = getCurrentWebView();
// Simulate overlay mode by scrolling the webview the amount it will be
// pushed down. Actual overlay mode doesn't work for us as otherwise
diff --git a/src/com/android/browser/PhoneUi.java b/src/com/android/browser/PhoneUi.java
index 901f5bd..32bc092 100644
--- a/src/com/android/browser/PhoneUi.java
+++ b/src/com/android/browser/PhoneUi.java
@@ -213,7 +213,9 @@ public class PhoneUi extends BaseUi {
@Override
public void onActionModeStarted(ActionMode mode) {
- hideTitleBar();
+ if (!isEditingUrl()) {
+ hideTitleBar();
+ }
}
@Override
diff --git a/src/com/android/browser/UI.java b/src/com/android/browser/UI.java
index bc4c0cf..0929c0c 100644
--- a/src/com/android/browser/UI.java
+++ b/src/com/android/browser/UI.java
@@ -134,6 +134,8 @@ public interface UI {
void editUrl(boolean clearInput);
+ boolean isEditingUrl();
+
boolean dispatchKey(int code, KeyEvent event);
public static interface DropdownChangeListener {