Refactoring

This commit is contained in:
M66B
2021-07-01 12:20:46 +02:00
parent 78d05820f9
commit bdd8dad04d
4 changed files with 47 additions and 16 deletions

View File

@@ -34,7 +34,6 @@ import android.view.View;
import android.view.WindowManager;
import android.view.inputmethod.EditorInfo;
import android.widget.AdapterView;
import android.widget.AutoCompleteTextView;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
@@ -83,7 +82,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
View dview = LayoutInflater.from(context).inflate(R.layout.dialog_search, null);
final AutoCompleteTextView etQuery = dview.findViewById(R.id.etQuery);
final TextViewAutoCompleteAction etQuery = dview.findViewById(R.id.etQuery);
final TextView tvSearch1 = dview.findViewById(R.id.tvSearch1);
final TextView tvSearch2 = dview.findViewById(R.id.tvSearch2);
final TextView tvSearch3 = dview.findViewById(R.id.tvSearch3);
@@ -171,6 +170,14 @@ public class FragmentDialogSearch extends FragmentDialogBase {
}
});
etQuery.setActionRunnable(new Runnable() {
@Override
public void run() {
etQuery.setText(null);
}
});
etQuery.setActionEnabled(true);
etQuery.setAdapter(adapter);
View.OnClickListener onSearch = new View.OnClickListener() {