mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-25 18:52:19 -05:00
Made FindViewById usage compatible with older version of Mono for Android (not using generic overload)
This commit is contained in:
parent
ee5cc47f74
commit
72ab132979
@ -830,7 +830,7 @@ namespace keepass2android
|
||||
|
||||
private void CopyFieldFromExtraDialog(View eesButton, object dialog, int fieldId)
|
||||
{
|
||||
var sourceField = ((Dialog)dialog).FindViewById<EditText>(fieldId);
|
||||
var sourceField = (EditText)((Dialog)dialog).FindViewById(fieldId);
|
||||
var targetField = ((TextView)((View)eesButton.Parent).FindViewById(fieldId));
|
||||
if (sourceField.Text != targetField.Text)
|
||||
{
|
||||
@ -841,7 +841,7 @@ namespace keepass2android
|
||||
|
||||
private void CopyCheckboxFromExtraDialog(View eesButton, object dialog, int fieldId)
|
||||
{
|
||||
var sourceField = ((Dialog)dialog).FindViewById<CheckBox>(fieldId);
|
||||
var sourceField = (CheckBox)((Dialog)dialog).FindViewById(fieldId);
|
||||
var targetField = ((CheckBox)((View)eesButton.Parent).FindViewById(fieldId));
|
||||
if (sourceField.Checked != targetField.Checked)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user