forked from organicmaps/organicmaps
[android] Minor code fix.
This commit is contained in:
parent
8e196ee62a
commit
6fd1ad5712
1 changed files with 2 additions and 2 deletions
|
@ -664,7 +664,7 @@ public class DownloadUI extends ListActivity implements MapStorage.Listener
|
|||
if (ConnectionState.getState(this) == ConnectionState.NOT_CONNECTED)
|
||||
{
|
||||
final DownloadUI activity = this;
|
||||
final MapStorage storage = getDA().m_storage;
|
||||
final String country = getDA().m_storage.countryName(idx);
|
||||
|
||||
runOnUiThread(new Runnable()
|
||||
{
|
||||
|
@ -673,7 +673,7 @@ public class DownloadUI extends ListActivity implements MapStorage.Listener
|
|||
{
|
||||
new AlertDialog.Builder(activity)
|
||||
.setCancelable(false)
|
||||
.setMessage(String.format(getString(R.string.download_country_failed), storage.countryName(idx)))
|
||||
.setMessage(String.format(getString(R.string.download_country_failed), country))
|
||||
.setPositiveButton(getString(R.string.connection_settings), new DialogInterface.OnClickListener()
|
||||
{
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue