forked from organicmaps/organicmaps
[codereview]
This commit is contained in:
parent
6cfbf8be6f
commit
c160315151
2 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue