From f9181a9c8125136f597add7c30cb2ff508d54ba7 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 17:34:32 +0800
Subject: [PATCH] 2024年07月25日17:33:40

---
 HDL_ON/UI/UI2/FuntionControlView/Music/A31SongPlay.cs |   62 ++++++++++++++++--------------
 1 files changed, 33 insertions(+), 29 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/A31SongPlay.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/A31SongPlay.cs
index 139f635..d3bc3b7 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Music/A31SongPlay.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Music/A31SongPlay.cs
@@ -140,44 +140,48 @@
         {
             System.Threading.Thread updateSelectedMusicThread = new System.Threading.Thread(() =>
             {
-                while (frame.Parent != null)
+                try
                 {
-                    //A31MusicModel.LogMusic("宸插惎鍔ㄦ洿鏂伴煶涔愬垪琛ㄦ煇涓�鏉¢煶涔愮姸鎬佺殑绾跨▼");
-                    System.Threading.Thread.Sleep(1000);
-                    Application.RunOnMainThread(() =>
+                    while (frame.Parent != null)
                     {
-                        try
+                        //A31MusicModel.LogMusic("宸插惎鍔ㄦ洿鏂伴煶涔愬垪琛ㄦ煇涓�鏉¢煶涔愮姸鎬佺殑绾跨▼");
+                        System.Threading.Thread.Sleep(1000);
+                        Application.RunOnMainThread(() =>
                         {
-                            for (int i = 0; i < middViewLayout.ChildrenCount; i++)
+                            try
                             {
-                                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.A31PlayStatus.TrackURL == songNameBtn.Tag.ToString())
-                                //{
-                                //    volIconBtn.Visible = true;
-                                //    songNameBtn.TextColor = UI.Music.MusicColor.SelectedColor;
-                                //    songNameBtn.X = Application.GetRealWidth(48);
-                                //    artistNameBtn.X = songNameBtn.Right;
-                                //    artistNameBtn.TextColor = UI.Music.MusicColor.SelectedColor;
-                                //}
-                                //else
-                                //{
-                                //    volIconBtn.Visible = false;
-                                //    songNameBtn.TextColor = UI.Music.MusicColor.MusicTxet14Color;
-                                //    songNameBtn.X = Application.GetRealWidth(16);
-                                //    artistNameBtn.X = songNameBtn.Right;
-                                //    artistNameBtn.TextColor = UI.Music.MusicColor.MusicNoTxetColor;
-                                //}
+                                for (int i = 0; i < middViewLayout.ChildrenCount; 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.A31PlayStatus.TrackURL == songNameBtn.Tag.ToString())
+                                                                                    //{
+                                                                                    //    volIconBtn.Visible = true;
+                                                                                    //    songNameBtn.TextColor = UI.Music.MusicColor.SelectedColor;
+                                                                                    //    songNameBtn.X = Application.GetRealWidth(48);
+                                                                                    //    artistNameBtn.X = songNameBtn.Right;
+                                                                                    //    artistNameBtn.TextColor = UI.Music.MusicColor.SelectedColor;
+                                                                                    //}
+                                                                                    //else
+                                                                                    //{
+                                                                                    //    volIconBtn.Visible = false;
+                                                                                    //    songNameBtn.TextColor = UI.Music.MusicColor.MusicTxet14Color;
+                                                                                    //    songNameBtn.X = Application.GetRealWidth(16);
+                                                                                    //    artistNameBtn.X = songNameBtn.Right;
+                                                                                    //    artistNameBtn.TextColor = UI.Music.MusicColor.MusicNoTxetColor;
+                                                                                    //}
 
 
+                                }
                             }
-                        }
-                        catch { }
+                            catch { }
 
-                    });
+                        });
+                    }
                 }
+                catch (Exception e) { }
             });
             updateSelectedMusicThread.Start();
         }

--
Gitblit v1.8.0