From f067ee02289a793662e3a8d8cc222e853e7bf03f Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 22 May 2018 15:17:28 +0300 Subject: [PATCH] add description for all choose plan dialogs --- .../ChoosePlanHillshadeSrtmDialogFragment.java | 9 ++++++++- .../ChoosePlanSeaDepthMapsDialogFragment.java | 9 ++++++++- .../chooseplan/ChoosePlanWikipediaDialogFragment.java | 11 ++++++++++- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanHillshadeSrtmDialogFragment.java b/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanHillshadeSrtmDialogFragment.java index a9fd29de21..0727904df8 100644 --- a/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanHillshadeSrtmDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanHillshadeSrtmDialogFragment.java @@ -4,7 +4,9 @@ import android.app.Activity; import android.view.View; import net.osmand.plus.R; +import net.osmand.plus.Version; import net.osmand.plus.activities.OsmandInAppPurchaseActivity; +import net.osmand.plus.download.DownloadValidationManager; import net.osmand.plus.inapp.InAppPurchaseHelper; public class ChoosePlanHillshadeSrtmDialogFragment extends ChoosePlanDialogFragment { @@ -52,7 +54,12 @@ public class ChoosePlanHillshadeSrtmDialogFragment extends ChoosePlanDialogFragm @Override public String getInfoDescription() { - return ""; + if (Version.isFreeVersion(getOsmandApplication())) { + return getString(R.string.free_version_message, + DownloadValidationManager.MAXIMUM_AVAILABLE_FREE_DOWNLOADS) + "\n" + getString(R.string.get_osmand_live); + } else { + return getString(R.string.get_osmand_live); + } } @Override diff --git a/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanSeaDepthMapsDialogFragment.java b/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanSeaDepthMapsDialogFragment.java index 6f312bbee1..14bbf304da 100644 --- a/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanSeaDepthMapsDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanSeaDepthMapsDialogFragment.java @@ -4,7 +4,9 @@ import android.app.Activity; import android.view.View; import net.osmand.plus.R; +import net.osmand.plus.Version; import net.osmand.plus.activities.OsmandInAppPurchaseActivity; +import net.osmand.plus.download.DownloadValidationManager; import net.osmand.plus.inapp.InAppPurchaseHelper; public class ChoosePlanSeaDepthMapsDialogFragment extends ChoosePlanDialogFragment { @@ -52,7 +54,12 @@ public class ChoosePlanSeaDepthMapsDialogFragment extends ChoosePlanDialogFragme @Override public String getInfoDescription() { - return ""; + if (Version.isFreeVersion(getOsmandApplication())) { + return getString(R.string.free_version_message, + DownloadValidationManager.MAXIMUM_AVAILABLE_FREE_DOWNLOADS) + "\n" + getString(R.string.get_osmand_live); + } else { + return getString(R.string.get_osmand_live); + } } @Override diff --git a/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanWikipediaDialogFragment.java b/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanWikipediaDialogFragment.java index c334ac94f3..fa0336d218 100644 --- a/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanWikipediaDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanWikipediaDialogFragment.java @@ -1,5 +1,9 @@ package net.osmand.plus.chooseplan; +import net.osmand.plus.R; +import net.osmand.plus.Version; +import net.osmand.plus.download.DownloadValidationManager; + public class ChoosePlanWikipediaDialogFragment extends ChoosePlanFreeBannerDialogFragment { public static final String TAG = ChoosePlanWikipediaDialogFragment.class.getSimpleName(); @@ -48,6 +52,11 @@ public class ChoosePlanWikipediaDialogFragment extends ChoosePlanFreeBannerDialo @Override public String getInfoDescription() { - return ""; + if (Version.isFreeVersion(getOsmandApplication())) { + return getString(R.string.free_version_message, + DownloadValidationManager.MAXIMUM_AVAILABLE_FREE_DOWNLOADS) + "\n" + getString(R.string.get_osmand_live); + } else { + return getString(R.string.get_osmand_live); + } } }