Merge "Fix for IOOB in SearchView" into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
18afc622c3
@@ -511,7 +511,7 @@ public class SearchView extends LinearLayout implements CollapsibleActionView {
|
||||
public void setQuery(CharSequence query, boolean submit) {
|
||||
mQueryTextView.setText(query);
|
||||
if (query != null) {
|
||||
mQueryTextView.setSelection(query.length());
|
||||
mQueryTextView.setSelection(mQueryTextView.length());
|
||||
mUserQuery = query;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user