mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
null checks
This commit is contained in:
parent
056bce3dd9
commit
f6833699a6
1 changed files with 5 additions and 4 deletions
|
@ -59,9 +59,9 @@ namespace Bit.Android.Autofill
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_passwordFields = Fields
|
_passwordFields = Fields
|
||||||
.Where(f =>
|
.Where(f =>
|
||||||
!f.IdEntry.ToLowerInvariant().Contains("search") &&
|
(!f.IdEntry?.ToLowerInvariant().Contains("search") ?? true) &&
|
||||||
(!f.Node.Hint?.ToLowerInvariant().Contains("search") ?? true) &&
|
(!f.Node?.Hint?.ToLowerInvariant().Contains("search") ?? true) &&
|
||||||
(
|
(
|
||||||
f.InputType.HasFlag(InputTypes.TextVariationPassword) ||
|
f.InputType.HasFlag(InputTypes.TextVariationPassword) ||
|
||||||
f.InputType.HasFlag(InputTypes.TextVariationVisiblePassword) ||
|
f.InputType.HasFlag(InputTypes.TextVariationVisiblePassword) ||
|
||||||
|
@ -70,7 +70,8 @@ namespace Bit.Android.Autofill
|
||||||
).ToList();
|
).ToList();
|
||||||
if(!_passwordFields.Any())
|
if(!_passwordFields.Any())
|
||||||
{
|
{
|
||||||
_passwordFields = Fields.Where(f => f.IdEntry?.ToLower().Contains("password") ?? false).ToList();
|
_passwordFields = Fields.Where(f =>
|
||||||
|
f.IdEntry?.ToLowerInvariant().Contains("password") ?? false).ToList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue