From 7b43ee08324559adda30d4fd200c3179d255cea8 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 1 Jun 2015 01:18:23 +0200 Subject: [PATCH] Fix --- .../src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java index b28e6d9384..eae5122990 100644 --- a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java +++ b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java @@ -992,7 +992,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin { Recording r = new Recording(f); String encodeName = f.getName(); int i = encodeName.lastIndexOf('_'); - if (i > 0 && i < 8) { + if (i >= 8) { encodeName = encodeName.substring(i + 1); } i = encodeName.indexOf('.');