allow to show attachments for template entries
This commit is contained in:
@@ -915,6 +915,11 @@ namespace keepass2android
|
|||||||
item.SetVisible(false);
|
item.SetVisible(false);
|
||||||
foreach (View v in _editModeHiddenViews)
|
foreach (View v in _editModeHiddenViews)
|
||||||
v.Visibility = ViewStates.Visible;
|
v.Visibility = ViewStates.Visible;
|
||||||
|
State.EditMode.ShowAddAttachments = true;
|
||||||
|
ViewGroup binariesGroup = (ViewGroup)FindViewById(Resource.Id.binaries);
|
||||||
|
binariesGroup.Visibility = ViewStates.Visible;
|
||||||
|
FindViewById(Resource.Id.entry_binaries_container).Visibility = ViewStates.Visible;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
case Android.Resource.Id.Home:
|
case Android.Resource.Id.Home:
|
||||||
OnBackPressed();
|
OnBackPressed();
|
||||||
|
|||||||
@@ -18,9 +18,15 @@ namespace keepass2android
|
|||||||
return keys;
|
return keys;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected bool? manualShowAddAttachments = null;
|
||||||
|
|
||||||
public virtual bool ShowAddAttachments
|
public virtual bool ShowAddAttachments
|
||||||
{
|
{
|
||||||
get { return true; }
|
get
|
||||||
|
{
|
||||||
|
if (manualShowAddAttachments != null) return (bool)manualShowAddAttachments;
|
||||||
|
return true; }
|
||||||
|
set { manualShowAddAttachments = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual bool ShowAddExtras
|
public virtual bool ShowAddExtras
|
||||||
|
|||||||
@@ -140,7 +140,11 @@ namespace keepass2android
|
|||||||
|
|
||||||
public override bool ShowAddAttachments
|
public override bool ShowAddAttachments
|
||||||
{
|
{
|
||||||
get { return false; }
|
get
|
||||||
|
{
|
||||||
|
if (manualShowAddAttachments != null) return (bool)manualShowAddAttachments;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool ShowAddExtras
|
public override bool ShowAddExtras
|
||||||
|
|||||||
Reference in New Issue
Block a user