profiles: ensure single instance per profile, fix havoc on add/removal of a profile
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 19 Jan 2019 18:25:31 +0000 (18:25 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 19 Jan 2019 18:25:31 +0000 (18:25 +0000)
commite809f9bacb61890374d1b9c8c46edeaed8a838b0
tree40528cf801b05e089bc33c6923a79953f4d51999
parentb5ce02c84db901506139f9e0aaab3c56e394a6e3
profiles: ensure single instance per profile, fix havoc on add/removal of a profile

havoc == multiple profiles selected, spontaneous change of the current
profile
app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java
app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileListActivity.java
app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java