mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fix wrong condition
This commit is contained in:
parent
591b10f4c9
commit
5cb1f7281b
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ public abstract class AuthenticatedActivity extends NavigationBaseActivity {
|
|||
.subscribeOn(Schedulers.io())
|
||||
.map(AccountManagerFuture::getResult)
|
||||
.doOnEvent((bundle, throwable) -> {
|
||||
if (bundle.containsKey(AccountManager.KEY_ACCOUNT_NAME)) {
|
||||
if (!bundle.containsKey(AccountManager.KEY_ACCOUNT_NAME)) {
|
||||
throw new RuntimeException("Bundle doesn't contain account-name key: "
|
||||
+ AccountManager.KEY_ACCOUNT_NAME);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue