forked from organicmaps/organicmaps
[android] fix: Correct strings used.
This commit is contained in:
parent
84df79192f
commit
fdbcf3cf94
2 changed files with 9 additions and 8 deletions
|
@ -835,12 +835,12 @@ public class MwmActivity extends BaseMwmFragmentActivity
|
|||
case LocationState.NOT_FOLLOW_NO_POSITION:
|
||||
pauseLocation();
|
||||
|
||||
// TODO (trashkalmar): Set correct texts
|
||||
String message = String.format("%s\n\n%s", getString(R.string.current_location_unknown_message),
|
||||
getString(R.string.current_location_unknown_title));
|
||||
new AlertDialog.Builder(this)
|
||||
.setTitle("GPS error")
|
||||
.setMessage("Failed to get location. Try again?")
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.setPositiveButton(R.string.downloader_retry, new DialogInterface.OnClickListener()
|
||||
.setMessage(message)
|
||||
.setNegativeButton(R.string.current_location_unknown_stop_button, null)
|
||||
.setPositiveButton(R.string.current_location_unknown_continue_button, new DialogInterface.OnClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which)
|
||||
|
|
|
@ -211,10 +211,11 @@ public class DownloaderFragment extends BaseMwmRecyclerFragment
|
|||
@Override
|
||||
protected void setupPlaceholder(View placeholder)
|
||||
{
|
||||
// TODO (trashkalmar): Set actual resources
|
||||
if (mAdapter.isSearchResultsMode())
|
||||
UiUtils.setupPlaceholder(placeholder, R.drawable.img_search_nothing_found_light, R.string.search_not_found, R.string.search_not_found_query);
|
||||
UiUtils.setupPlaceholder(placeholder, R.drawable.img_search_nothing_found_light,
|
||||
R.string.search_not_found, R.string.search_not_found_query);
|
||||
else
|
||||
UiUtils.setupPlaceholder(placeholder, R.drawable.img_search_no_maps, R.string.search_history_title, R.string.search_history_text);
|
||||
UiUtils.setupPlaceholder(placeholder, R.drawable.img_search_no_maps,
|
||||
R.string.downloader_no_downloaded_maps_title, R.string.downloader_no_downloaded_maps_message);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue