Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e12e040117
2 changed files with 9 additions and 1 deletions
|
@ -315,7 +315,12 @@ public class ItemViewHolder {
|
|||
break;
|
||||
case ASK_FOR_SRTM_PLUGIN_PURCHASE:
|
||||
OsmandPlugin plugin = OsmandPlugin.getPlugin(SRTMPlugin.class);
|
||||
context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(plugin.getInstallURL())));
|
||||
if(plugin == null || plugin.getInstallURL() == null) {
|
||||
Toast.makeText(context.getApplicationContext(),
|
||||
context.getString(R.string.activate_srtm_plugin), Toast.LENGTH_LONG).show();
|
||||
} else {
|
||||
context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(plugin.getInstallURL())));
|
||||
}
|
||||
break;
|
||||
case ASK_FOR_SRTM_PLUGIN_ENABLE:
|
||||
context.startActivity(new Intent(context, context.getMyApplication().getAppCustomization()
|
||||
|
|
|
@ -96,6 +96,9 @@ public class MapDataMenuController extends MenuController {
|
|||
OsmandPlugin plugin = OsmandPlugin.getPlugin(SRTMPlugin.class);
|
||||
if (plugin != null) {
|
||||
mapActivity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(plugin.getInstallURL())));
|
||||
} else {
|
||||
Toast.makeText(mapActivity.getApplicationContext(),
|
||||
mapActivity.getString(R.string.activate_srtm_plugin), Toast.LENGTH_LONG).show();
|
||||
}
|
||||
} else {
|
||||
mapActivity.startActivity(new Intent(mapActivity, mapActivity.getMyApplication().getAppCustomization()
|
||||
|
|
Loading…
Reference in a new issue