diff --git a/app/src/main/java/ru/vtosters/lite/music/cache/MusicCacheImpl.java b/app/src/main/java/ru/vtosters/lite/music/cache/MusicCacheImpl.java index 8fb4d423f..6c50a8a1a 100644 --- a/app/src/main/java/ru/vtosters/lite/music/cache/MusicCacheImpl.java +++ b/app/src/main/java/ru/vtosters/lite/music/cache/MusicCacheImpl.java @@ -1,6 +1,7 @@ package ru.vtosters.lite.music.cache; import android.os.RemoteException; +import android.text.TextUtils; import bruhcollective.itaysonlab.libvkx.ILibVkxService; import bruhcollective.itaysonlab.libvkx.client.LibVKXClient; import bruhcollective.itaysonlab.libvkx.client.LibVKXClientImpl; @@ -17,7 +18,7 @@ public static void addTrack(MusicTrack track) { track.y1(), track.I != null ? track.I.getId() + "" : "-1", track.f, - track.g, + !TextUtils.isEmpty(track.g) ? track.g : "", track.C, track.I != null ? track.I.getTitle() : "", track.K, diff --git a/app/src/main/java/ru/vtosters/lite/music/downloader/M3UDownloader.java b/app/src/main/java/ru/vtosters/lite/music/downloader/M3UDownloader.java index a1698a9be..d5a15abab 100644 --- a/app/src/main/java/ru/vtosters/lite/music/downloader/M3UDownloader.java +++ b/app/src/main/java/ru/vtosters/lite/music/downloader/M3UDownloader.java @@ -136,7 +136,7 @@ private static void processSegment( } public static String getTitle(MusicTrack track) { - return track.f + (!TextUtils.isEmpty(track.g) ? +'(' + track.g + ')' : ""); + return track.f + (!TextUtils.isEmpty(track.g) ? + '(' + track.g + ')' : ""); } static File getTsesDir(MusicTrack track) {