Added possibility to add entry to root group
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Crocoll
					Philipp Crocoll