1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-01-05 21:37:06 +01:00

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

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());
}