From f3c8cf07fad2e39a32af549b305da6723159f755 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 31 七月 2020 12:07:19 +0800
Subject: [PATCH] 2020-07-31-1

---
 HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs
index 2fbe648..8b9cd91 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs
@@ -1,16 +1,21 @@
 锘縰sing System;
+using System.Collections.Generic;
 using Shared;
 using HDL_ON.UI.Music;
-
 namespace HDL_ON.UI.UI2.FuntionControlView.Music
 {
-    public class UpdateThread : FrameLayout
+    public class UpdateThread
     {
         public UpdateThread()
         {
         }
-
-        public static void updateThread(FrameLayout frame, VerticalRefreshLayout middViewLayout)
+        /// <summary>
+        /// 瀹氭椂鏇存柊褰撳墠鎾斁闊充箰
+        /// </summary>
+        /// <param name="frame">褰撳墠鐣岄潰</param>
+        /// <param name="middViewLayout">姣忎竴鏉¢煶涔愮殑涓绘帶浠�</param>
+        /// <param name="a31MusicModel">鐐瑰墠鎾斁鍣�</param>
+        public static void updateThread(FrameLayout frame, VerticalRefreshLayout middViewLayout, A31MusicModel a31MusicModel)
         {
             System.Threading.Thread updateSelectedMusicThread = new System.Threading.Thread(() =>
             {
@@ -23,11 +28,11 @@
                         {
                             for (int i = 0; i < middViewLayout.ChildrenCount; i++)
                             {
-                                FrameLayout view = (FrameLayout)middViewLayout.GetChildren(i);
+                                RowLayout view = (RowLayout)middViewLayout.GetChildren(i);
                                 var volIconBtn = (Button)view.GetChildren(0);//鐩存帴FrameLayout鐖舵帶浠舵壘鍒拌鎺т欢Button
                                 var songNameBtn = (Button)view.GetChildren(1);//鐩存帴FrameLayout鐖舵帶浠舵壘鍒拌鎺т欢Button
                                 var artistNameBtn = (Button)view.GetChildren(2);//鐩存帴FrameLayout鐖舵帶浠舵壘鍒拌鎺т欢Button
-                                if (A31MusicModel.Current.A31PlayStatus.TrackURL == songNameBtn.Tag.ToString())
+                                if (a31MusicModel.A31PlayStatus.TrackURL == songNameBtn.Tag.ToString())
                                 {
                                     volIconBtn.Visible = true;
                                     songNameBtn.TextColor = UI.Music.Color.SelectedColor;

--
Gitblit v1.8.0