mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
check android for event wireup
This commit is contained in:
parent
1a3cb8b623
commit
65438e837d
1 changed files with 15 additions and 7 deletions
|
@ -177,9 +177,13 @@ namespace Bit.App.Pages
|
||||||
|
|
||||||
AnalyticsCell.OnChanged += AnalyticsCell_Changed;
|
AnalyticsCell.OnChanged += AnalyticsCell_Changed;
|
||||||
StackLayout.LayoutChanged += Layout_LayoutChanged;
|
StackLayout.LayoutChanged += Layout_LayoutChanged;
|
||||||
AutofillAlwaysCell.OnChanged += AutofillAlwaysCell_OnChanged;
|
|
||||||
AutofillPasswordFieldCell.OnChanged += AutofillPasswordFieldCell_OnChanged;
|
if(Device.RuntimePlatform == Device.Android)
|
||||||
AutofillPersistNotificationCell.OnChanged += AutofillPersistNotificationCell_OnChanged;
|
{
|
||||||
|
AutofillAlwaysCell.OnChanged += AutofillAlwaysCell_OnChanged;
|
||||||
|
AutofillPasswordFieldCell.OnChanged += AutofillPasswordFieldCell_OnChanged;
|
||||||
|
AutofillPersistNotificationCell.OnChanged += AutofillPersistNotificationCell_OnChanged;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnDisappearing()
|
protected override void OnDisappearing()
|
||||||
|
@ -188,9 +192,13 @@ namespace Bit.App.Pages
|
||||||
|
|
||||||
AnalyticsCell.OnChanged -= AnalyticsCell_Changed;
|
AnalyticsCell.OnChanged -= AnalyticsCell_Changed;
|
||||||
StackLayout.LayoutChanged -= Layout_LayoutChanged;
|
StackLayout.LayoutChanged -= Layout_LayoutChanged;
|
||||||
AutofillAlwaysCell.OnChanged -= AutofillAlwaysCell_OnChanged;
|
|
||||||
AutofillPasswordFieldCell.OnChanged -= AutofillPasswordFieldCell_OnChanged;
|
if(Device.RuntimePlatform == Device.Android)
|
||||||
AutofillPersistNotificationCell.OnChanged -= AutofillPersistNotificationCell_OnChanged;
|
{
|
||||||
|
AutofillAlwaysCell.OnChanged -= AutofillAlwaysCell_OnChanged;
|
||||||
|
AutofillPasswordFieldCell.OnChanged -= AutofillPasswordFieldCell_OnChanged;
|
||||||
|
AutofillPersistNotificationCell.OnChanged -= AutofillPersistNotificationCell_OnChanged;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Layout_LayoutChanged(object sender, EventArgs e)
|
private void Layout_LayoutChanged(object sender, EventArgs e)
|
||||||
|
@ -217,7 +225,7 @@ namespace Bit.App.Pages
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(cell.On)
|
if(cell.On)
|
||||||
{
|
{
|
||||||
AutofillPasswordFieldCell.On = false;
|
AutofillPasswordFieldCell.On = false;
|
||||||
|
|
Loading…
Reference in a new issue