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;
import android.text.Editable;
import android.text.Spannable;
import android.text.TextWatcher;
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);
setContentView(R.layout.browser_find);
- theWindow.setLayout(ViewGroup.LayoutParams.FILL_PARENT,
+ theWindow.setLayout(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT);
mEditText = (EditText) findViewById(R.id.edit);
mMatchesView.setVisibility(View.INVISIBLE);
} else {
mMatchesView.setVisibility(View.VISIBLE);
+ mWebView.setFindDialogHeight(
+ getWindow().getDecorView().getHeight());
int found = mWebView.findAll(find.toString());
setMatchesFound(found);
if (found < 2) {