mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-12 20:45:05 -05:00
Added possibility to add entry to root group
This commit is contained in:
parent
fa6555f01c
commit
57506336c1
@ -122,8 +122,7 @@ namespace keepass2android
|
||||
if (entryId.EqualsValue(PwUuid.Zero))
|
||||
{
|
||||
String groupId = i.GetStringExtra(KeyParent);
|
||||
|
||||
State.ParentGroup = db.Groups [new PwUuid(MemUtil.HexStringToByteArray(groupId))];
|
||||
State.ParentGroup = db.KpDatabase.RootGroup.FindGroup(new PwUuid(MemUtil.HexStringToByteArray(groupId)), true);
|
||||
|
||||
State.EntryInDatabase = new PwEntry(true, true);
|
||||
State.EntryInDatabase.Strings.Set(PwDefs.UserNameField, new ProtectedString(
|
||||
|
@ -78,7 +78,7 @@ namespace keepass2android
|
||||
protected void SetupButtons()
|
||||
{
|
||||
AddGroupEnabled = true;
|
||||
AddEntryEnabled = !Group.Uuid.EqualsValue(App.Kp2a.GetDb().Root.Uuid);
|
||||
AddEntryEnabled = true;
|
||||
}
|
||||
|
||||
protected override void OnCreate (Bundle savedInstanceState)
|
||||
|
Loading…
Reference in New Issue
Block a user