mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
Null checks in iOS views on value changed. Segue to proper route on lock screen dismissal. Adjusted add site modal transition.
This commit is contained in:
parent
3dff2cc6d0
commit
dc69b75cb9
5 changed files with 13 additions and 6 deletions
|
@ -36,7 +36,7 @@ namespace Bit.iOS.Core.Views
|
|||
|
||||
if(valueChanged)
|
||||
{
|
||||
ValueChanged(this, null);
|
||||
ValueChanged?.Invoke(this, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace Bit.iOS.Core.Views
|
|||
private void Stepper_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
Value = Convert.ToInt32(Stepper.Value);
|
||||
ValueChanged(this, null);
|
||||
ValueChanged?.Invoke(this, null);
|
||||
}
|
||||
|
||||
public UIStepper Stepper { get; private set; }
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace Bit.iOS.Core.Views
|
|||
|
||||
private void Switch_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
ValueChanged(this, null);
|
||||
ValueChanged?.Invoke(this, null);
|
||||
}
|
||||
|
||||
public UISwitch Switch { get; set; } = new UISwitch();
|
||||
|
|
|
@ -168,8 +168,15 @@ namespace Bit.iOS.Extension
|
|||
Debug.WriteLine("BW Log, Dismissing lock controller.");
|
||||
DismissViewController(false, () =>
|
||||
{
|
||||
Debug.WriteLine("BW Log, Segue to site list.");
|
||||
PerformSegue("siteListSegue", this);
|
||||
Debug.WriteLine("BW Log, Segue to site add or list.");
|
||||
if(_context.ProviderType == Constants.UTTypeAppExtensionSaveLoginAction)
|
||||
{
|
||||
PerformSegue("newSiteSegue", this);
|
||||
}
|
||||
else
|
||||
{
|
||||
PerformSegue("siteListSegue", this);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<segue id="8446" destination="6512" kind="presentation" identifier="lockFingerprintSegue"/>
|
||||
<segue id="8924" destination="6815" kind="presentation" identifier="lockPinSegue"/>
|
||||
<segue id="9874" destination="6855" kind="presentation" identifier="lockPasswordSegue"/>
|
||||
<segue id="10498" destination="1845" kind="presentation" identifier="newSiteSegue" modalPresentationStyle="" modalTransitionStyle=""/>
|
||||
<segue id="10498" destination="1845" kind="presentation" identifier="newSiteSegue" modalPresentationStyle="fullScreen" modalTransitionStyle="coverVertical"/>
|
||||
<outlet property="DecryptingLabel" destination="10537" id="name-outlet-10537"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
|
|
Loading…
Reference in a new issue