aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-12-14 17:28:24 +0100
committerBananeweizen <bananeweizen@gmx.de>2014-12-14 17:28:24 +0100
commit319a8bca0acde29f5e2bd80e90774e0f33afe192 (patch)
treed5fc6eeab50820c2d048069805fe1d6b1546d844 /main/src
parenta51ccd03c339f0b1330d726ebcce73573808b9dc (diff)
downloadcgeo-319a8bca0acde29f5e2bd80e90774e0f33afe192.zip
cgeo-319a8bca0acde29f5e2bd80e90774e0f33afe192.tar.gz
cgeo-319a8bca0acde29f5e2bd80e90774e0f33afe192.tar.bz2
fix #4518: recognize Sygic voucher edition
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/apps/cache/navi/SygicNavigationApp.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/SygicNavigationApp.java b/main/src/cgeo/geocaching/apps/cache/navi/SygicNavigationApp.java
index 5d667c3..391fa90 100644
--- a/main/src/cgeo/geocaching/apps/cache/navi/SygicNavigationApp.java
+++ b/main/src/cgeo/geocaching/apps/cache/navi/SygicNavigationApp.java
@@ -2,6 +2,7 @@ package cgeo.geocaching.apps.cache.navi;
import cgeo.geocaching.R;
import cgeo.geocaching.location.Geopoint;
+import cgeo.geocaching.utils.ProcessUtils;
import android.app.Activity;
import android.content.Intent;
@@ -14,10 +15,19 @@ import android.net.Uri;
*/
class SygicNavigationApp extends AbstractPointNavigationApp {
- private static final String PACKAGE = "com.sygic.aura";
+ private static final String PACKAGE_NORMAL = "com.sygic.aura";
+ /**
+ * there is a secondary edition of this app
+ */
+ private static final String PACKAGE_VOUCHER = "com.sygic.aura_voucher";
SygicNavigationApp() {
- super(getString(R.string.cache_menu_sygic), R.id.cache_app_sygic, null, PACKAGE);
+ super(getString(R.string.cache_menu_sygic), R.id.cache_app_sygic, null, PACKAGE_NORMAL);
+ }
+
+ @Override
+ public boolean isInstalled() {
+ return ProcessUtils.isLaunchable(PACKAGE_NORMAL) || ProcessUtils.isLaunchable(PACKAGE_VOUCHER);
}
@Override