mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Revert "Throw if no accounts are found"
This reverts commit 12488c01d4.
Throws in the Login screen. Stupid idea.
This commit is contained in:
parent
12488c01d4
commit
f2a3666e0e
1 changed files with 0 additions and 2 deletions
|
|
@ -122,8 +122,6 @@ public class CommonsApplication extends Application {
|
||||||
Account[] allAccounts = accountManager.getAccountsByType(WikiAccountAuthenticator.COMMONS_ACCOUNT_TYPE);
|
Account[] allAccounts = accountManager.getAccountsByType(WikiAccountAuthenticator.COMMONS_ACCOUNT_TYPE);
|
||||||
if(allAccounts.length != 0) {
|
if(allAccounts.length != 0) {
|
||||||
currentAccount = allAccounts[0];
|
currentAccount = allAccounts[0];
|
||||||
} else {
|
|
||||||
throw new RuntimeException("No accounts found!");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return currentAccount;
|
return currentAccount;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue