From 38ef6dbfc1cefa97cbb35e1da6f82d54f5fe1495 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 3 Jun 2012 00:48:10 +0200 Subject: [PATCH] Add developer version flag --- OsmAnd/src/net/osmand/Version.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OsmAnd/src/net/osmand/Version.java b/OsmAnd/src/net/osmand/Version.java index 267d679106..712c9b6f06 100644 --- a/OsmAnd/src/net/osmand/Version.java +++ b/OsmAnd/src/net/osmand/Version.java @@ -58,6 +58,11 @@ public class Version { } + public static boolean isDeveloperVersion(Context ctx){ + return "osmand~".equalsIgnoreCase(getAppName(ctx)); + + } + public static String getVersionForTracker(Context ctx) { String v = Version.getAppName(ctx); if(Version.isProductionVersion(ctx)){