From b562a582ac3a288193e6e4f57c5eff8a344305a4 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期五, 27 九月 2024 13:52:17 +0800
Subject: [PATCH] Update AndroidManifest.xml
---
HDL_ON/UI/UI2/FuntionControlView/Aks/DetailPage.cs | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/DetailPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/DetailPage.cs
index 8ae8e68..c3b59a0 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/DetailPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/DetailPage.cs
@@ -198,7 +198,7 @@
Y = btnYear.Bottom + Application.GetRealHeight(20),
Width = Application.GetRealWidth(45),
Height = Application.GetRealHeight(43),
- Text = movieLibrary.rating,
+ Text = movieLibraryInfo == null ? "" : movieLibraryInfo.rating,
TextSize = 32,
TextColor = MusicColor.TextColor,
TextAlignment = TextAlignment.CenterLeft,
@@ -218,7 +218,6 @@
TextColor = 0xffA5AEBC,
TextSize = TextSize.Text12,
TextAlignment = TextAlignment.CenterLeft,
- Text = movieLibraryInfo == null ? "" : movieLibraryInfo.rating,
};
baseFramLayout.AddChidren(btnScore);
@@ -234,6 +233,7 @@
IsSelected = movieLibraryInfo == null ? false : movieLibraryInfo.collect,
};
baseFramLayout.AddChidren(btnCollectImage);
+
btnCollectText = new Button
{
@@ -395,7 +395,7 @@
//杩斿洖
this.topView.clickBackBtn.MouseUpEventHandler += (sender, e) =>
{
- action(isOldState != btnCollectImage.IsSelected);
+ action?.Invoke(isOldState != btnCollectImage.IsSelected);
this.RemoveFromParent();
};
//绔嬪嵆鎾斁
@@ -438,18 +438,29 @@
var isBool = SendMethod.Current.IsCollect(remoteControl.deviceId, remoteControl.rcId, movieLibrary.movieId, btnCollectImage.IsSelected);
if (isBool)
{
+ //鏇存柊缂撳瓨鏁版嵁
+ movieLibraryInfo.collect = btnCollectImage.IsSelected;
//鎴愬姛鍚庢墠鏇存柊缂撳瓨鏁版嵁
if (btnCollectImage.IsSelected)
{
+
AksCommonMethod.Current.AddCollectMovie(movieLibrary);
}
else
{
AksCommonMethod.Current.DelCollectMovie(movieLibrary);
}
+
}
}
catch { }
+ finally
+ {
+ CommonMethod.Current.MainThread(() =>
+ {
+ CommonMethod.Current.Loading.Hide();
+ });
+ }
});
};
btnCollectImage.MouseUpEventHandler += CollectClick;
--
Gitblit v1.8.0