mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +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
src
|
@ -36,7 +36,7 @@ namespace Bit.iOS.Core.Views
|
||||||
|
|
||||||
if(valueChanged)
|
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)
|
private void Stepper_ValueChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Value = Convert.ToInt32(Stepper.Value);
|
Value = Convert.ToInt32(Stepper.Value);
|
||||||
ValueChanged(this, null);
|
ValueChanged?.Invoke(this, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public UIStepper Stepper { get; private set; }
|
public UIStepper Stepper { get; private set; }
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace Bit.iOS.Core.Views
|
||||||
|
|
||||||
private void Switch_ValueChanged(object sender, EventArgs e)
|
private void Switch_ValueChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ValueChanged(this, null);
|
ValueChanged?.Invoke(this, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public UISwitch Switch { get; set; } = new UISwitch();
|
public UISwitch Switch { get; set; } = new UISwitch();
|
||||||
|
|
|
@ -168,8 +168,15 @@ namespace Bit.iOS.Extension
|
||||||
Debug.WriteLine("BW Log, Dismissing lock controller.");
|
Debug.WriteLine("BW Log, Dismissing lock controller.");
|
||||||
DismissViewController(false, () =>
|
DismissViewController(false, () =>
|
||||||
{
|
{
|
||||||
Debug.WriteLine("BW Log, Segue to site list.");
|
Debug.WriteLine("BW Log, Segue to site add or list.");
|
||||||
|
if(_context.ProviderType == Constants.UTTypeAppExtensionSaveLoginAction)
|
||||||
|
{
|
||||||
|
PerformSegue("newSiteSegue", this);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
PerformSegue("siteListSegue", this);
|
PerformSegue("siteListSegue", this);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<segue id="8446" destination="6512" kind="presentation" identifier="lockFingerprintSegue"/>
|
<segue id="8446" destination="6512" kind="presentation" identifier="lockFingerprintSegue"/>
|
||||||
<segue id="8924" destination="6815" kind="presentation" identifier="lockPinSegue"/>
|
<segue id="8924" destination="6815" kind="presentation" identifier="lockPinSegue"/>
|
||||||
<segue id="9874" destination="6855" kind="presentation" identifier="lockPasswordSegue"/>
|
<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"/>
|
<outlet property="DecryptingLabel" destination="10537" id="name-outlet-10537"/>
|
||||||
</connections>
|
</connections>
|
||||||
</viewController>
|
</viewController>
|
||||||
|
|
Loading…
Reference in a new issue