Convert FetchUserInfoJob to a CoroutineWorker and add tests. Get rid of the EventBus and observe the result from the Worker instead.
MAILAND-937
#comment Affected: Dismissing the delinquency dialog when clicking on 'Check Again'
Created a LiveData "notifier" for when a user get logged out forcefully. Usually happens when a session is revoked. Now when this happens user will immediately be returned to Inbox.
MAILAND-886
#comment This fixes the preferences: since multi-user preferences have not been conformed, so we were storing login state and similar at app-level, now they're handled independently for each user.
A PreferencesProvider.kt have been created, leveraging the responsability to handle Preferences for ProtonMailApplication.
Some refactor have been done for User into Drawer for NavigationActivity.kt and for AccountManagerActivity.kt: now they have 2 different adapter ( AccountManagerAccountsAdapter.kt and DrawerAccountsAdapter.kt ).
Some bad code have been deprecated, like the static accessor ProtonMailApplication.getApplication
Affected: UserManager.kt, PreferencesProvider.kt, AccountManagerAccountsAdapter.kt, DrawerAccountsAdapter.kt, all the elements that interact with verifying the login state.
Ticket: MAILAND-473
# Conflicts:
# app/build.gradle