修复 Android 设置令牌密码后无法取消密码

This commit is contained in:
Aigio Liu
2021-09-15 17:36:15 +08:00
parent 8fe506374d
commit 7361b170e1
3 changed files with 4 additions and 3 deletions
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace System
{
class DWMApi
static class DWMApi
{
public const int DWM_TNP_VISIBLE = 0x8,
DWM_TNP_OPACITY = 0x4,
@@ -1,11 +1,11 @@
using System.Net;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;
// ReSharper disable once CheckNamespace
namespace System
{
internal class WinInet
internal static class WinInet
{
// For PInvoke: Initiates the enumeration of the cache groups in the Internet cache
[DllImport(@"wininet",
@@ -42,6 +42,7 @@ namespace System.Application.UI.Activities
ViewModel!.WhenAnyValue(x => x.IsPasswordEncrypt).SubscribeInMainThread(value =>
{
if (binding == null) return;
binding!.swEncryption.Checked = value;
binding.layoutPassword.Enabled = value;
binding.layoutPassword2.Enabled = value;
}).AddTo(this);