From 044fc666db6cb8ad772d371025510c207532f4c7 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 1 Jun 2015 01:13:41 +0200 Subject: [PATCH] Fix https://github.com/osmandapp/Osmand/issues/1270 --- .../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 f9f69fb6e2..c20853704f 100644 --- a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java +++ b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNotesPlugin.java @@ -180,7 +180,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin { String fileName = getFileName(); final String hashAndExtension; int hashInd = fileName.lastIndexOf('_'); - if (hashInd == -1) { + if (hashInd == -1 || hashInd < 8) { hashAndExtension = "_" + fileName; } else { hashAndExtension = fileName.substring(hashInd, fileName.length());