Fix
This commit is contained in:
parent
044fc666db
commit
95f8644db6
1 changed files with 2 additions and 2 deletions
|
@ -201,7 +201,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
|
|||
String fileName = file.getName();
|
||||
|
||||
int hashInd = fileName.lastIndexOf('_');
|
||||
if (hashInd != -1) {
|
||||
if (hashInd != -1 && hashInd < 8) {
|
||||
return fileName.substring(0, hashInd);
|
||||
} else if (this.isAudio()) {
|
||||
return ctx.getResources().getString(R.string.shared_string_audio);
|
||||
|
@ -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) {
|
||||
if (i > 0 && i < 8) {
|
||||
encodeName = encodeName.substring(i + 1);
|
||||
}
|
||||
i = encodeName.indexOf('.');
|
||||
|
|
Loading…
Reference in a new issue