From 628266d12bf45d9dd4ce5e7f421777b00554cc08 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 27 Apr 2013 16:51:09 +0200 Subject: [PATCH] Add message --- .../src/net/osmand/plus/activities/DownloadIndexActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java b/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java index d4146a2961..12675ea1da 100644 --- a/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java @@ -599,13 +599,15 @@ public class DownloadIndexActivity extends OsmandExpandableListActivity { total++; } } + String msgTx = getString(R.string.free_version_message, MAXIMUM_AVAILABLE_FREE_DOWNLOADS + "", "( =" + total + ") "); if (total > MAXIMUM_AVAILABLE_FREE_DOWNLOADS || wiki) { Builder msg = new AlertDialog.Builder(this); msg.setTitle(R.string.free_version_title); - msg.setMessage(getString(R.string.free_version_message, MAXIMUM_AVAILABLE_FREE_DOWNLOADS + "", "( =" + total + ") ")); + msg.setMessage(msgTx); msg.setPositiveButton(R.string.default_buttons_ok, null); msg.show(); } else { + AccessibleToast.makeText(this, msgTx, Toast.LENGTH_LONG).show(); downloadFilesPreCheckSRTM( list); } } else {