forked from organicmaps/organicmaps
[new downloader][android] fix: Correct search hint in toolbar.
This commit is contained in:
parent
26ecd7ab32
commit
39f1ba38af
3 changed files with 7 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@null"
|
||||
android:hint="@string/downloader_search_field_hint"
|
||||
android:hint="@string/search"
|
||||
android:imeOptions="actionSearch|flagNoExtractUi"
|
||||
android:inputType="text"
|
||||
android:padding="@dimen/margin_quarter"
|
||||
|
|
|
@ -24,6 +24,7 @@ class DownloaderToolbarController extends SearchToolbarController
|
|||
{
|
||||
super(root, activity);
|
||||
mFragment = fragment;
|
||||
setHint(R.string.downloader_search_field_hint);
|
||||
|
||||
mDownloadAll = mToolbar.findViewById(R.id.download_all);
|
||||
mUpdateAll = mToolbar.findViewById(R.id.update_all);
|
||||
|
|
|
@ -195,4 +195,9 @@ public class SearchToolbarController extends ToolbarController
|
|||
setQuery(result);
|
||||
}
|
||||
}
|
||||
|
||||
public void setHint(@StringRes int hint)
|
||||
{
|
||||
mQuery.setHint(hint);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue