Merge remote-tracking branch 'refs/remotes/origin/2.8-release'

# Conflicts:
#	app/build.gradle
This commit is contained in:
misaochan 2018-07-05 01:00:51 +10:00
commit 107729cdf0
4 changed files with 18 additions and 2 deletions

View file

@ -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);