Merge pull request #164 from ultrasonic/bug/fix-offline-mode

Fix app doesn't handle right transcoded suffix.
This commit is contained in:
Yahor Berdnikau 2018-02-11 22:48:25 +01:00 committed by GitHub
commit 6951f653bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -75,12 +75,9 @@ public class FileUtil
}
fileName.append(fileSystemSafe(song.getTitle())).append('.');
if (song.getTranscodedSuffix() != null)
{
if (!TextUtils.isEmpty(song.getTranscodedSuffix())) {
fileName.append(song.getTranscodedSuffix());
}
else
{
} else {
fileName.append(song.getSuffix());
}