From 61cb2988137788af050b00eecc15300bed8549e2 Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 6 Dec 2014 21:55:59 +0100 Subject: [PATCH] fix build --- OsmAnd/src/net/osmand/plus/activities/DashboardActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/DashboardActivity.java b/OsmAnd/src/net/osmand/plus/activities/DashboardActivity.java index 969fc182e1..95106ae292 100644 --- a/OsmAnd/src/net/osmand/plus/activities/DashboardActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/DashboardActivity.java @@ -94,7 +94,7 @@ public class DashboardActivity extends BaseDownloadActivity { lp = getMyApplication().getLocationProvider(); final String textVersion = Version.getFullVersion(getMyApplication()); - getSupportActionBar().setTitle(textVersion.substring(0, textVersion.getIndex("#"))); + getSupportActionBar().setTitle(textVersion.substring(0, textVersion.indexOf("#")+1)); ColorDrawable color = new ColorDrawable(getResources().getColor(R.color.actionbar_color)); getSupportActionBar().setBackgroundDrawable(color); getSupportActionBar().setIcon(android.R.color.transparent);