[codereview]

This commit is contained in:
Dmitry Kunin 2013-07-05 13:36:15 +03:00 committed by Alex Zolotarev
parent 6cfbf8be6f
commit c160315151
2 changed files with 4 additions and 6 deletions

View file

@ -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);
}
}

View file

@ -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.