mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
Merge remote-tracking branch 'refs/remotes/origin/2.8-release'
# Conflicts: # app/build.gradle
This commit is contained in:
commit
107729cdf0
4 changed files with 18 additions and 2 deletions
|
|
@ -5,6 +5,8 @@ import android.accounts.AccountManager;
|
|||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import fr.free.nrw.commons.mwapi.MediaWikiApi;
|
||||
import io.reactivex.Completable;
|
||||
import io.reactivex.Observable;
|
||||
|
|
@ -31,6 +33,7 @@ public class SessionManager {
|
|||
/**
|
||||
* @return Account|null
|
||||
*/
|
||||
@Nullable
|
||||
public Account getCurrentAccount() {
|
||||
if (currentAccount == null) {
|
||||
AccountManager accountManager = AccountManager.get(context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue