Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorDmitry Kunin <dkunin@mapswith.me>2013-07-05 14:36:15 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:58:03 +0300
commitc1603151513cf5f52a45c1ea449f5f5d04f9272f (patch)
tree286236568ed31fdacaffbb32b34877e4199ebbd2 /api
parent6cfbf8be6f0fbf75fb2eb7b016e55988751fb8b8 (diff)
[codereview]
Diffstat (limited to 'api')
-rw-r--r--api/android/lib/src/com/mapswithme/maps/api/DownloadMapsWithMeDialog.java4
-rw-r--r--api/android/lib/src/com/mapswithme/maps/api/MapsWithMeApi.java6
2 files changed, 4 insertions, 6 deletions
diff --git a/api/android/lib/src/com/mapswithme/maps/api/DownloadMapsWithMeDialog.java b/api/android/lib/src/com/mapswithme/maps/api/DownloadMapsWithMeDialog.java
index ae9570f1be..5670a5f828 100644
--- a/api/android/lib/src/com/mapswithme/maps/api/DownloadMapsWithMeDialog.java
+++ b/api/android/lib/src/com/mapswithme/maps/api/DownloadMapsWithMeDialog.java
@@ -59,9 +59,7 @@ public class DownloadMapsWithMeDialog extends Dialog implements android.view.Vie
@Override
public void onClick(View v)
{
- String url = getContext().getString(R.string.url_lite);
- if (v.getId() == R.id.btn_pro) url = getContext().getString(R.string.url_pro);
-
+ String url = getContext().getString(v.getId() == R.id.btn_lite ? R.string.url_lite : R.string.url_pro);
onDownloadButtonClicked(url);
}
}
diff --git a/api/android/lib/src/com/mapswithme/maps/api/MapsWithMeApi.java b/api/android/lib/src/com/mapswithme/maps/api/MapsWithMeApi.java
index 1fa3dc740e..615fbbbbc1 100644
--- a/api/android/lib/src/com/mapswithme/maps/api/MapsWithMeApi.java
+++ b/api/android/lib/src/com/mapswithme/maps/api/MapsWithMeApi.java
@@ -31,18 +31,18 @@ import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.net.Uri;
-
public final class MapsWithMeApi
{
/**
* Most detailed level, buildings and trees are seen.
*/
- public static final double ZOOM_MIN = 1;
+ public static final double ZOOM_MAX = 19;
/**
* Least detailed level, continents are seen.
*/
- public static final double ZOOM_MAX = 19;
+ public static final double ZOOM_MIN = 1;
+
/**
* Shows single point on the map.