소스 검색

added filter for Stream Down for last played

yattoz 4 년 전
부모
커밋
c8bf207ce5
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      app/src/main/java/fr/forum_thalie/tsumugi/Values.kt
  2. 1 1
      app/src/main/java/fr/forum_thalie/tsumugi/playerstore/PlayerStore.kt

+ 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