item is saved during onPause as well as saved. Repaired by setting the
row id when adding the password for the first time since this prevents
the 2nd time around from adding it again.
git-svn-id: http://openintents.googlecode.com/svn/trunk/Safe@1759
72b678ce-9140-0410-bee8-
679b907dd61a
}
if (RowId == null || RowId == -1) {
- dbHelper.addPassword(entry);
+ RowId = dbHelper.addPassword(entry);
} else {
PassEntry storedEntry = dbHelper.fetchPassword (RowId);
//update fields that aren't set in the UI: