This commit is contained in:
parent
f355bd5779
commit
044fc666db
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
|
||||||
String fileName = getFileName();
|
String fileName = getFileName();
|
||||||
final String hashAndExtension;
|
final String hashAndExtension;
|
||||||
int hashInd = fileName.lastIndexOf('_');
|
int hashInd = fileName.lastIndexOf('_');
|
||||||
if (hashInd == -1) {
|
if (hashInd == -1 || hashInd < 8) {
|
||||||
hashAndExtension = "_" + fileName;
|
hashAndExtension = "_" + fileName;
|
||||||
} else {
|
} else {
|
||||||
hashAndExtension = fileName.substring(hashInd, fileName.length());
|
hashAndExtension = fileName.substring(hashInd, fileName.length());
|
||||||
|
|
Loading…
Reference in a new issue