mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
revert unused changes
This commit is contained in:
parent
274ebcef2d
commit
5b23b40c4f
1 changed files with 1 additions and 20 deletions
|
@ -19,10 +19,9 @@
|
|||
|
||||
package org.eehouse.android.xw4;
|
||||
|
||||
import android.widget.SearchView;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.EditText;
|
||||
import android.widget.SearchView;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
@ -32,7 +31,6 @@ public class EditWClear extends SearchView
|
|||
private static final String TAG = EditWClear.class.getSimpleName();
|
||||
|
||||
private Set<TextWatcher> mWatchers;
|
||||
private EditText mEdit;
|
||||
|
||||
public interface TextWatcher {
|
||||
void onTextChanged( String newText );
|
||||
|
@ -43,12 +41,6 @@ public class EditWClear extends SearchView
|
|||
super( context, as );
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onFinishInflate()
|
||||
{
|
||||
mEdit = (EditText)Utils.getChildInstanceOf( this, EditText.class );
|
||||
}
|
||||
|
||||
synchronized void addTextChangedListener( TextWatcher proc )
|
||||
{
|
||||
if ( null == mWatchers ) {
|
||||
|
@ -68,17 +60,6 @@ public class EditWClear extends SearchView
|
|||
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
|
||||
@Override
|
||||
public synchronized boolean onQueryTextChange( String newText )
|
||||
|
|
Loading…
Add table
Reference in a new issue