-Fixed cursor position to point to end after search text insert.
-Reduced and slightly changed offset of search text insert image.
This commit is contained in:
parent
5e16969d61
commit
69374e25fe
|
@ -449,6 +449,7 @@ public class SearchFragment extends BaseListFragment<SearchResult, ListExtractor
|
||||||
@Override
|
@Override
|
||||||
public void onSuggestionItemInserted(SuggestionItem item) {
|
public void onSuggestionItemInserted(SuggestionItem item) {
|
||||||
searchEditText.setText(item.query);
|
searchEditText.setText(item.query);
|
||||||
|
searchEditText.setSelection(searchEditText.getText().length());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -57,11 +57,11 @@
|
||||||
android:paddingLeft="16dp"
|
android:paddingLeft="16dp"
|
||||||
android:paddingRight="16dp"
|
android:paddingRight="16dp"
|
||||||
android:paddingBottom="8dp"
|
android:paddingBottom="8dp"
|
||||||
android:paddingTop="8dp">
|
android:paddingTop="10dp">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="24dp"
|
android:layout_width="20dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="20dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:src="?attr/search_add"
|
android:src="?attr/search_add"
|
||||||
tools:ignore="ContentDescription,RtlHardcoded"/>
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
||||||
|
|
Loading…
Reference in New Issue