add description for all choose plan dialogs
This commit is contained in:
parent
e3cd85da67
commit
f067ee0228
3 changed files with 26 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue