Solve field reference issues #61 (Was fix in part by refactoring)

This commit is contained in:
J-Jamet
2018-03-29 22:07:09 +02:00
parent ab98f03ebf
commit 1e07d6a28d
2 changed files with 3 additions and 3 deletions

View File

@@ -147,6 +147,7 @@ public class EntryActivity extends LockingHideActivity {
fillData();
invalidateOptionsMenu();
// Start to manage field reference to copy a value from ref
mEntry.startToManageFieldReferences(App.getDB().getPwDatabase());
// If notifications enabled in settings

View File

@@ -317,7 +317,8 @@ public class EntryEditActivity extends LockingHideActivity
ImageButton currIconButton = findViewById(R.id.icon_button);
App.getDB().getDrawFactory().assignDrawableTo(currIconButton, getResources(), mEntry.getIcon());
mEntry.startToManageFieldReferences(App.getDB().getPwDatabase());
// Don't start the field reference manager, we want to see the raw ref
mEntry.endToManageFieldReferences();
entryTitleView.setText(mEntry.getTitle());
entryUserNameView.setText(mEntry.getUsername());
@@ -344,8 +345,6 @@ public class EntryEditActivity extends LockingHideActivity
container.addView(entryEditNewField);
});
}
mEntry.endToManageFieldReferences();
}
@Override