From e56137e33ed5c77a485f9e83ee4b6534cfdf6432 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 03 八月 2020 15:00:21 +0800
Subject: [PATCH] 2020-8-03-1

---
 HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs |   19 +++++++++++++------
 1 files changed, 13 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..f8baa06 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs
@@ -1,21 +1,27 @@
 锘縰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(() =>
             {
                 while (frame.Parent != null)
                 {
+                    A31MusicModel.LogMusic("宸插惎鍔ㄦ洿鏂伴煶涔愬垪琛ㄦ煇涓�鏉¢煶涔愮姸鎬佺殑绾跨▼");
                     System.Threading.Thread.Sleep(1000);
                     Application.RunOnMainThread(() =>
                     {
@@ -23,11 +29,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;
@@ -54,5 +60,6 @@
             });
             updateSelectedMusicThread.Start();
         }
+       
     }
 }

--
Gitblit v1.8.0