refactored some code
This commit is contained in:
parent
6b8d38d941
commit
0d3a8f4dca
2 changed files with 3 additions and 4 deletions
|
@ -42,9 +42,9 @@
|
|||
android:id="@+id/empty_search_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/nothing_found_in_radius"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:textSize="@dimen/default_list_text_size"/>
|
||||
android:textSize="@dimen/default_list_text_size"
|
||||
tools:text="@string/nothing_found_in_radius" />
|
||||
|
||||
<net.osmand.plus.widgets.TextViewEx
|
||||
android:id="@+id/empty_search_description"
|
||||
|
|
|
@ -236,8 +236,7 @@ public class QuickSearchListAdapter extends ArrayAdapter<QuickSearchListItem> {
|
|||
boolean moreDividerVisible = emptySearchVisible && searchMoreItem.isSearchMoreAvailable();
|
||||
view.findViewById(R.id.empty_search).setVisibility(emptySearchVisible ? View.VISIBLE : View.GONE);
|
||||
view.findViewById(R.id.more_divider).setVisibility(moreDividerVisible ? View.VISIBLE : View.GONE);
|
||||
QuickSearchHelper searchHelper = app.getSearchUICore();
|
||||
SearchUICore searchUICore = searchHelper.getCore();
|
||||
SearchUICore searchUICore = app.getSearchUICore().getCore();
|
||||
String textTitle = app.getString(R.string.nothing_found_in_radius) + " "
|
||||
+ OsmAndFormatter.getFormattedDistance(searchUICore.getMinimalSearchRadius(searchUICore.getPhrase()), app);
|
||||
((TextView) view.findViewById(R.id.empty_search_title)).setText(textTitle);
|
||||
|
|
Loading…
Reference in a new issue