mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-20 09:01:33 -08:00
Fix crash on saving new entries.
This commit is contained in:
1 parent
2512a2d006
commit
efef8c19c1
1 file changed
+7
-3
@@ -178,9 +178,13 @@ public class EntryEditActivity extends LockCloseActivity {
|
||||
newEntry.binaryDesc = mEntry.binaryDesc;
|
||||
newEntry.groupId = mEntry.groupId;
|
||||
|
||||
// Keep previous icon, if no new one was selected
|
||||
if (-1 == mSelectedIconID) {
|
||||
newEntry.icon = mEntry.icon;
|
||||
if (mSelectedIconID == -1) {
|
||||
if (mIsNew) {
|
||||
newEntry.icon = App.getDB().pm.iconFactory.getIcon(0);
|
||||
} else {
|
||||
// Keep previous icon, if no new one was selected
|
||||
newEntry.icon = mEntry.icon;
|
||||
}
|
||||
}
|
||||
else {
|
||||
newEntry.icon = App.getDB().pm.iconFactory.getIcon(mSelectedIconID);
|
||||
|
||||
Reference in new issue
Block a user