OSDN Git Service

Do not clear FindDialog's text when changing orientation.
authorLeon Scroggins <scroggo@google.com>
Thu, 29 Oct 2009 13:49:57 +0000 (09:49 -0400)
committerLeon Scroggins <scroggo@google.com>
Thu, 29 Oct 2009 16:53:31 +0000 (12:53 -0400)
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
src/com/android/browser/FindDialog.java

index a167b09..7076b22 100644 (file)
@@ -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
index df212d0..9379103 100644 (file)
@@ -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);