Fix renaming groups #194

This commit is contained in:
J-Jamet
2019-02-28 10:46:35 +01:00
parent 953e63f55d
commit 2208c67b62

View File

@@ -998,13 +998,14 @@ public class GroupActivity extends LockingActivity
// If update add new elements // If update add new elements
if (oldGroupToUpdate != null) { if (oldGroupToUpdate != null) {
PwGroup updateGroup = oldGroupToUpdate.clone(); PwGroup updateGroup = oldGroupToUpdate.clone();
updateGroup.setName(name);
try { try {
iconStandard = (PwIconStandard) icon; iconStandard = (PwIconStandard) icon;
updateGroup = ((PwGroupV4) oldGroupToUpdate).clone(); // TODO generalize updateGroup = ((PwGroupV4) oldGroupToUpdate).clone(); // TODO generalize
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} // TODO custom icon }
updateGroup.setName(name);
// TODO custom icon
updateGroup.setIconStandard(iconStandard); updateGroup.setIconStandard(iconStandard);
if (listNodesFragment != null) if (listNodesFragment != null)