浏览代码

added filter for Stream Down for last played

yattoz 4 年前
父节点
当前提交
c8bf207ce5

+ 1 - 0
app/src/main/java/fr/forum_thalie/tsumugi/Values.kt 查看文件

@@ -5,6 +5,7 @@ import android.content.res.ColorStateList
5 5
 
6 6
 const val tag = "fr.forum_thalie.tsumugi"
7 7
 const val noConnectionValue = "No connection"
8
+const val streamDownValue = "Tsumugi est HS !"
8 9
 var colorBlue: Int = 0
9 10
 var colorWhited: Int = 0
10 11
 var colorGreenList: ColorStateList? = ColorStateList.valueOf(0)

+ 1 - 1
app/src/main/java/fr/forum_thalie/tsumugi/playerstore/PlayerStore.kt 查看文件

@@ -165,7 +165,7 @@ class PlayerStore {
165 165
         //if (lp.isNotEmpty()){
166 166
             val n = Song()
167 167
             n.copy(currentSongBackup)
168
-            if (n.title.value != noConnectionValue)
168
+            if (n.title.value != noConnectionValue && n.title.value != streamDownValue)
169 169
                 lp.add(0, n)
170 170
             currentSongBackup.copy(currentSong)
171 171
             isLpUpdated.value = true