revert unused changes

This commit is contained in:
Eric House 2020-08-13 21:41:37 -07:00
parent 274ebcef2d
commit 5b23b40c4f

View file

@ -19,10 +19,9 @@
package org.eehouse.android.xw4; package org.eehouse.android.xw4;
import android.widget.SearchView;
import android.content.Context; import android.content.Context;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.widget.EditText;
import android.widget.SearchView;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
@ -32,7 +31,6 @@ public class EditWClear extends SearchView
private static final String TAG = EditWClear.class.getSimpleName(); private static final String TAG = EditWClear.class.getSimpleName();
private Set<TextWatcher> mWatchers; private Set<TextWatcher> mWatchers;
private EditText mEdit;
public interface TextWatcher { public interface TextWatcher {
void onTextChanged( String newText ); void onTextChanged( String newText );
@ -43,12 +41,6 @@ public class EditWClear extends SearchView
super( context, as ); super( context, as );
} }
@Override
protected void onFinishInflate()
{
mEdit = (EditText)Utils.getChildInstanceOf( this, EditText.class );
}
synchronized void addTextChangedListener( TextWatcher proc ) synchronized void addTextChangedListener( TextWatcher proc )
{ {
if ( null == mWatchers ) { if ( null == mWatchers ) {
@ -68,17 +60,6 @@ public class EditWClear extends SearchView
return super.getQuery(); return super.getQuery();
} }
void insertBlank( String blank )
{
// I'm not confident I'll always be able to get the edittext, so to be
// safe....
if ( null == mEdit ) {
setQuery( getQuery() + blank, false );
} else {
mEdit.getText().insert(mEdit.getSelectionStart(), blank );
}
}
// from SearchView.OnQueryTextListener // from SearchView.OnQueryTextListener
@Override @Override
public synchronized boolean onQueryTextChange( String newText ) public synchronized boolean onQueryTextChange( String newText )