Added possibility to add entry to root group
This commit is contained in:
@@ -122,8 +122,7 @@ namespace keepass2android
|
|||||||
if (entryId.EqualsValue(PwUuid.Zero))
|
if (entryId.EqualsValue(PwUuid.Zero))
|
||||||
{
|
{
|
||||||
String groupId = i.GetStringExtra(KeyParent);
|
String groupId = i.GetStringExtra(KeyParent);
|
||||||
|
State.ParentGroup = db.KpDatabase.RootGroup.FindGroup(new PwUuid(MemUtil.HexStringToByteArray(groupId)), true);
|
||||||
State.ParentGroup = db.Groups [new PwUuid(MemUtil.HexStringToByteArray(groupId))];
|
|
||||||
|
|
||||||
State.EntryInDatabase = new PwEntry(true, true);
|
State.EntryInDatabase = new PwEntry(true, true);
|
||||||
State.EntryInDatabase.Strings.Set(PwDefs.UserNameField, new ProtectedString(
|
State.EntryInDatabase.Strings.Set(PwDefs.UserNameField, new ProtectedString(
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ namespace keepass2android
|
|||||||
protected void SetupButtons()
|
protected void SetupButtons()
|
||||||
{
|
{
|
||||||
AddGroupEnabled = true;
|
AddGroupEnabled = true;
|
||||||
AddEntryEnabled = !Group.Uuid.EqualsValue(App.Kp2a.GetDb().Root.Uuid);
|
AddEntryEnabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnCreate (Bundle savedInstanceState)
|
protected override void OnCreate (Bundle savedInstanceState)
|
||||||
|
|||||||
Reference in New Issue
Block a user