瀏覽代碼

播放列表如果是0首歌曲,就不显示歌曲数量

onecold 6 月之前
父節點
當前提交
089b8e0e57
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      entry/src/main/ets/view/LocalMusic.ets

+ 2 - 1
entry/src/main/ets/view/LocalMusic.ets

@@ -11198,7 +11198,8 @@ export struct LocalMusic {
         blurStyle: BlurStyle.Thin,
         backgroundColor: this.isPlayListBgGrass?Color.Transparent:$r('app.color.silvery'),
         title: {
-          title: Utility.resourceToString(this.context, $r('app.string.current_play_list'))
+          title:this.getPlayListDisplayCount()==0?Utility.resourceToString(this.context, $r('app.string.current_play_list'))
+            :Utility.resourceToString(this.context, $r('app.string.current_play_list'))
             + `(${this.getPlayListDisplayCount()}首)`
         }
       })