summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2010-03-03 10:11:44 -0500
committerCary Clark <cary@android.com>2010-03-03 10:43:26 -0500
commit7d3ac79a202f0caf588e70270c28f5510ff80821 (patch)
tree648c93295c49a592f6da5509fc8f1dd73773098a
parentc7c0fced4bfa9a15d4db28b4376f3fec28ef7fa5 (diff)
downloadpackages_apps_Browser-7d3ac79a202f0caf588e70270c28f5510ff80821.zip
packages_apps_Browser-7d3ac79a202f0caf588e70270c28f5510ff80821.tar.gz
packages_apps_Browser-7d3ac79a202f0caf588e70270c28f5510ff80821.tar.bz2
refactor find state and scrolling
Explicitly call webkit to note when find dialog is visible, to dismiss the find dialog and clear to matches. Companion fix in frameworks/base and external/webkit http://b/2370069
-rw-r--r--src/com/android/browser/BrowserActivity.java1
-rw-r--r--src/com/android/browser/FindDialog.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 0bf370c..df80e99 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -1543,6 +1543,7 @@ public class BrowserActivity extends Activity
}
mFindDialog.setWebView(getTopWindow());
mFindDialog.show();
+ getTopWindow().setFindIsUp(true);
mMenuState = EMPTY_MENU;
break;
diff --git a/src/com/android/browser/FindDialog.java b/src/com/android/browser/FindDialog.java
index e8d2417..45c8016 100644
--- a/src/com/android/browser/FindDialog.java
+++ b/src/com/android/browser/FindDialog.java
@@ -129,7 +129,7 @@ import android.widget.TextView;
public void dismiss() {
super.dismiss();
mBrowserActivity.closeFind();
- mWebView.clearMatches();
+ mWebView.notifyFindDialogDismissed();
}
@Override