mirror of
https://github.com/bitwarden/android.git
synced 2024-12-19 07:41:52 +03:00
null checks when loading add site
This commit is contained in:
parent
118a790689
commit
b81eb007ab
1 changed files with 2 additions and 3 deletions
|
@ -52,7 +52,7 @@ namespace Bit.iOS.Extension
|
||||||
|
|
||||||
View.BackgroundColor = new UIColor(red: 0.94f, green: 0.94f, blue: 0.96f, alpha: 1.0f);
|
View.BackgroundColor = new UIColor(red: 0.94f, green: 0.94f, blue: 0.96f, alpha: 1.0f);
|
||||||
|
|
||||||
NameCell.TextField.Text = Context.Url.Host;
|
NameCell.TextField.Text = Context?.Url?.Host ?? string.Empty;
|
||||||
NameCell.TextField.ReturnKeyType = UIReturnKeyType.Next;
|
NameCell.TextField.ReturnKeyType = UIReturnKeyType.Next;
|
||||||
NameCell.TextField.ShouldReturn += (UITextField tf) =>
|
NameCell.TextField.ShouldReturn += (UITextField tf) =>
|
||||||
{
|
{
|
||||||
|
@ -60,7 +60,7 @@ namespace Bit.iOS.Extension
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
UriCell.TextField.Text = Context.Url.ToString();
|
UriCell.TextField.Text = Context?.Url?.ToString() ?? string.Empty;
|
||||||
UriCell.TextField.KeyboardType = UIKeyboardType.Url;
|
UriCell.TextField.KeyboardType = UIKeyboardType.Url;
|
||||||
UriCell.TextField.ReturnKeyType = UIReturnKeyType.Next;
|
UriCell.TextField.ReturnKeyType = UIReturnKeyType.Next;
|
||||||
UriCell.TextField.ShouldReturn += (UITextField tf) =>
|
UriCell.TextField.ShouldReturn += (UITextField tf) =>
|
||||||
|
@ -69,7 +69,6 @@ namespace Bit.iOS.Extension
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
UsernameCell.TextField.BecomeFirstResponder();
|
|
||||||
UsernameCell.TextField.AutocapitalizationType = UITextAutocapitalizationType.None;
|
UsernameCell.TextField.AutocapitalizationType = UITextAutocapitalizationType.None;
|
||||||
UsernameCell.TextField.AutocorrectionType = UITextAutocorrectionType.No;
|
UsernameCell.TextField.AutocorrectionType = UITextAutocorrectionType.No;
|
||||||
UsernameCell.TextField.SpellCheckingType = UITextSpellCheckingType.No;
|
UsernameCell.TextField.SpellCheckingType = UITextSpellCheckingType.No;
|
||||||
|
|
Loading…
Reference in a new issue