Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@
* @see UserAccountManager
*/
public interface CurrentAccountProvider {
/**
* Get currently active account.
* Replaced by getUser()
*
* @return Currently selected {@link Account} or first valid {@link Account} registered in OS or null, if not available at all.
*/
@Deprecated
@NonNull
Account getCurrentAccount();

/**
* Get currently active user profile. If there is no active user, anonymous user is returned.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,8 @@ public boolean exists(Account account) {
}
}

@Override
@NonNull
public Account getCurrentAccount() {
private Account getCurrentAccount() {
Account[] ocAccounts = getAccounts();

ArbitraryDataProvider arbitraryDataProvider = new ArbitraryDataProviderImpl(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {

// current account has changed
if (data.getBooleanExtra(ManageAccountsActivity.KEY_CURRENT_ACCOUNT_CHANGED, false)) {
setAccount(accountManager.getCurrentAccount(), false);
setUser(accountManager.getUser());
restart();
}
} else if (requestCode == PassCodeManager.PASSCODE_ACTIVITY && data != null) {
Expand Down
Loading