Made FindViewById usage compatible with older version of Mono for Android (not using generic overload)

This commit is contained in:
AlexVallat 2013-07-13 19:57:04 +01:00
parent ee5cc47f74
commit 72ab132979

View File

@ -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)
{