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-06-14 17:46:56 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:56:43 +0300
commit9fe15b5a58efc32fa19f940ac3ca93a94703cb31 (patch)
tree9caa3b75067a436bb5b9409e8a94a3628cb61c80 /api
parente5bd8ce8886b038bbc4b7549efe98c0ee8f7b3c3 (diff)
[codereview] Style fixes.
Diffstat (limited to 'api')
-rw-r--r--api/android/lib/src/com/mapswithme/maps/api/DownloadMapsWithMeDialog.java3
-rw-r--r--api/android/lib/src/com/mapswithme/maps/api/MapsWithMeApi.java8
2 files changed, 5 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 648e473687..78cd24fbcc 100644
--- a/api/android/lib/src/com/mapswithme/maps/api/DownloadMapsWithMeDialog.java
+++ b/api/android/lib/src/com/mapswithme/maps/api/DownloadMapsWithMeDialog.java
@@ -21,7 +21,8 @@ public class DownloadMapsWithMeDialog extends Dialog implements android.view.Vie
}
- public void onDownloadButtonClicked(){
+ public void onDownloadButtonClicked()
+ {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(getContext().getString(R.string.downolad_url)));
getContext().startActivity(i);
dismiss();
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 99cac09135..b324165854 100644
--- a/api/android/lib/src/com/mapswithme/maps/api/MapsWithMeApi.java
+++ b/api/android/lib/src/com/mapswithme/maps/api/MapsWithMeApi.java
@@ -110,10 +110,7 @@ public final class MapsWithMeApi
caller.startActivity(mwmIntent);
}
else
- {
- final DownloadMapsWithMeDialog dialog = new DownloadMapsWithMeDialog(caller);
- dialog.show();
- }
+ (new DownloadMapsWithMeDialog(caller)).show();
}
static StringBuilder createMwmUrl(Context context, String title, double zoomLevel, MWMPoint ... points)
@@ -153,7 +150,8 @@ public final class MapsWithMeApi
return Const.CALLBACK_PREFIX + context.getPackageName();
}
- @SuppressLint("NewApi") private static Intent addCommonExtras(Context context, Intent intent)
+ @SuppressLint("NewApi")
+ private static Intent addCommonExtras(Context context, Intent intent)
{
intent.putExtra(Const.EXTRA_CALLER_APP_INFO, context.getApplicationInfo());
intent.putExtra(Const.EXTRA_API_VERSION, Const.API_VERSION);