mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-29 12:32:21 -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)
|
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));
|
var targetField = ((TextView)((View)eesButton.Parent).FindViewById(fieldId));
|
||||||
if (sourceField.Text != targetField.Text)
|
if (sourceField.Text != targetField.Text)
|
||||||
{
|
{
|
||||||
@ -841,7 +841,7 @@ namespace keepass2android
|
|||||||
|
|
||||||
private void CopyCheckboxFromExtraDialog(View eesButton, object dialog, int fieldId)
|
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));
|
var targetField = ((CheckBox)((View)eesButton.Parent).FindViewById(fieldId));
|
||||||
if (sourceField.Checked != targetField.Checked)
|
if (sourceField.Checked != targetField.Checked)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user