From fb7c75067fe5764631c762a095012bb6aed77521 Mon Sep 17 00:00:00 2001 From: Leon Scroggins Date: Thu, 29 Oct 2009 09:49:57 -0400 Subject: [PATCH] Do not clear FindDialog's text when changing orientation. Fix for http://b/issue?id=1468517 Due to some changes in external/webkit and frameworks/base, it is no longer necessary to clear the string. A message will be sent which will perform the search one the picture is up to date. --- src/com/android/browser/BrowserActivity.java | 3 --- src/com/android/browser/FindDialog.java | 8 -------- 2 files changed, 11 deletions(-) diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index a167b09..7076b22 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -1051,9 +1051,6 @@ public class BrowserActivity extends Activity showHttpAuthentication(mHttpAuthHandler, null, null, title, name, password, focusId); } - if (mFindDialog != null && mFindDialog.isShowing()) { - mFindDialog.onConfigurationChanged(newConfig); - } } @Override diff --git a/src/com/android/browser/FindDialog.java b/src/com/android/browser/FindDialog.java index df212d0..9379103 100644 --- a/src/com/android/browser/FindDialog.java +++ b/src/com/android/browser/FindDialog.java @@ -18,7 +18,6 @@ package com.android.browser; import android.app.Dialog; import android.content.Context; -import android.content.res.Configuration; import android.os.Bundle; import android.os.Handler; import android.os.Message; @@ -97,13 +96,6 @@ import android.widget.TextView; setCanceledOnTouchOutside(true); } - /* package */ void onConfigurationChanged(Configuration newConfig) { - // FIXME: Would like to call mWebView.findAll again, so that the - // matches would refresh, but the new picture has not yet been - // created, so it is too soon. - mEditText.getText().clear(); - } - @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); -- 2.11.0