mirror of
https://github.com/bitwarden/mobile
synced 2025-12-12 06:13:21 +00:00
crash fixes
This commit is contained in:
@@ -487,15 +487,15 @@ namespace Bit.Android.Services
|
|||||||
{
|
{
|
||||||
InputType = global::Android.Text.InputTypes.ClassText
|
InputType = global::Android.Text.InputTypes.ClassText
|
||||||
};
|
};
|
||||||
if(text != null)
|
|
||||||
|
if(text == null)
|
||||||
{
|
{
|
||||||
|
text = string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
input.Text = text;
|
input.Text = text;
|
||||||
input.SetSelection(text.Length);
|
input.SetSelection(text.Length);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
input.FocusedByDefault = true;
|
|
||||||
}
|
|
||||||
alertBuilder.SetView(input);
|
alertBuilder.SetView(input);
|
||||||
|
|
||||||
var result = new TaskCompletionSource<string>();
|
var result = new TaskCompletionSource<string>();
|
||||||
|
|||||||
@@ -676,8 +676,9 @@ namespace Bit.App.Models.Page
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
public string Label => IsWebsite ? AppResources.Website : AppResources.URI;
|
public string Label => IsWebsite ? AppResources.Website : AppResources.URI;
|
||||||
public bool IsWebsite => Value.StartsWith("http://") || Value.StartsWith("https://");
|
public bool IsWebsite => Value == null ? false :
|
||||||
public bool IsApp => Value.StartsWith(Constants.AndroidAppProtocol);
|
Value.StartsWith("http://") || Value.StartsWith("https://");
|
||||||
|
public bool IsApp => Value == null ? false : Value.StartsWith(Constants.AndroidAppProtocol);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user