mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-08 23:57:45 +00:00
Fix a bug where manually entered profiles were added to the view twice
This commit is contained in:
parent
22861548c9
commit
4e6dea24c8
1 changed files with 1 additions and 8 deletions
|
@ -376,14 +376,7 @@ public class MainActivity extends AegisActivity implements KeyProfileView.Listen
|
||||||
private void onEnterKeyInfoResult(int resultCode, Intent data) {
|
private void onEnterKeyInfoResult(int resultCode, Intent data) {
|
||||||
if (resultCode == RESULT_OK) {
|
if (resultCode == RESULT_OK) {
|
||||||
KeyProfile profile = (KeyProfile) data.getSerializableExtra("KeyProfile");
|
KeyProfile profile = (KeyProfile) data.getSerializableExtra("KeyProfile");
|
||||||
try {
|
addKey(profile);
|
||||||
addKey(profile);
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
Toast.makeText(this, "An error occurred while trying to add an entry", Toast.LENGTH_SHORT).show();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_keyProfileView.addKey(profile);
|
|
||||||
saveDatabase();
|
saveDatabase();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue