mac
2024-07-25 f9181a9c8125136f597add7c30cb2ff508d54ba7
2024年07月25日17:33:40

强制线程终止,导致线程在运行报错;
4个文件已修改
18 ■■■■■ 已修改文件
HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Music/A31SongPlay.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
NunitTest-Android/Resources/Resource.designer.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs
@@ -349,6 +349,8 @@
        {
            timerThread = new System.Threading.Thread((obj) =>
            {
                try
                {
                while (true)
                {
                    Application.RunOnMainThread(() =>
@@ -525,6 +527,8 @@
                    });
                    System.Threading.Thread.Sleep(1000 * 1);
                }
                }
                catch (Exception e) { }
            })
            { IsBackground = true };
            timerThread.Start();
HDL_ON/UI/UI2/FuntionControlView/Music/A31SongPlay.cs
@@ -140,6 +140,8 @@
        {
            System.Threading.Thread updateSelectedMusicThread = new System.Threading.Thread(() =>
            {
                try
                {
                while (frame.Parent != null)
                {
                    //A31MusicModel.LogMusic("已启动更新音乐列表某一条音乐状态的线程");
@@ -178,6 +180,8 @@
                    });
                }
                }
                catch (Exception e) { }
            });
            updateSelectedMusicThread.Start();
        }
HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs
@@ -276,6 +276,8 @@
            //更新状态线程
            var musicThread = new System.Threading.Thread(() =>
            {
                try
                {
                while (true)
                {
                    if (!player.functionMusic.isOnline())
@@ -287,6 +289,8 @@
                    SendMethod.Current.GetDeviceStatus(ref player, new List<string> { player.functionMusic.deviceId }, player.functionMusic.sid);
                    System.Threading.Thread.Sleep(1000);
                    Application.RunOnMainThread(() =>
                        {
                            try
                    {
                        musicView.singerBtn.Text = player.functionMusic.GetAttrState(KeyProperty.song_name);
                        musicView.songNameBtn.Text = player.functionMusic.GetAttrState(KeyProperty.song_name);
@@ -309,8 +313,12 @@
                        {
                            musicView.collectIconBtn.IsSelected = false;
                        }
                            }
                            catch (Exception e) { }
                    });
                }
                }
                catch (Exception e) { }
            })
            { IsBackground = true, Name = "A31" };
            musicThread.Start();
NunitTest-Android/Resources/Resource.designer.cs
@@ -15,7 +15,7 @@
{
    
    
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.2.120")]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.0.99")]
    public partial class Resource
    {