Skip to content

Resolve "Multiple accounts"

Mike Burns requested to merge 7-refactoring into master
  • Set the Android Account name based on the instance's account name.
  • Insert a row into the Account table with all the instance's account data plus the instance's API URL and the human-readable account name.
  • When the Android Account is removed from the system, delete the row from the Account table.
  • Track the current account via a SharedPreference named AuthActivity.ACCOUNT_NAME.
  • Instead of creating the Api instance in the activity, ask the currentAccount() for an Api instance.
Edited by Mike Burns

Merge request reports