remove hacks

This commit is contained in:
Kyle Spearrin 2017-11-14 16:38:05 -05:00
parent 849ec6fa8f
commit 72ff680114
1 changed files with 4 additions and 4 deletions

View File

@ -129,8 +129,8 @@ namespace Bit.Android
private void ParseLocked(bool forFill, ViewNode viewNode) private void ParseLocked(bool forFill, ViewNode viewNode)
{ {
var autofillHints = viewNode.GetAutofillHints(); var autofillHints = viewNode.GetAutofillHints();
var autofillType = (AutofillType)(int)viewNode.AutofillType; var autofillType = viewNode.AutofillType;
var inputType = (InputTypes)(int)viewNode.InputType; var inputType = viewNode.InputType;
var isEditText = viewNode.ClassName == "android.widget.EditText"; var isEditText = viewNode.ClassName == "android.widget.EditText";
if(isEditText || (autofillHints?.Length ?? 0) > 0) if(isEditText || (autofillHints?.Length ?? 0) > 0)
{ {
@ -210,8 +210,8 @@ namespace Bit.Android
_autofillOptions = view.GetAutofillOptions(); _autofillOptions = view.GetAutofillOptions();
Id = view.Id; Id = view.Id;
AutofillId = view.AutofillId; AutofillId = view.AutofillId;
AutofillType = (AutofillType)(int)view.AutofillType; AutofillType = view.AutofillType;
InputType = (InputTypes)(int)view.InputType; InputType = view.InputType;
IsFocused = view.IsFocused; IsFocused = view.IsFocused;
AutofillHints = AutofillHelper.FilterForSupportedHints(view.GetAutofillHints())?.ToList() ?? new List<string>(); AutofillHints = AutofillHelper.FilterForSupportedHints(view.GetAutofillHints())?.ToList() ?? new List<string>();
} }