mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Made a pass through the code to introduce lambdas / method references in the places the Android Studio suggested.
This commit is contained in:
parent
3824f31ef9
commit
4796557fb7
25 changed files with 206 additions and 374 deletions
|
|
@ -197,8 +197,8 @@ public class CommonsApplication extends Application {
|
|||
|
||||
AccountManager accountManager = AccountManager.get(this);
|
||||
Account[] allAccounts = accountManager.getAccountsByType(AccountUtil.accountType());
|
||||
for (int index = 0; index < allAccounts.length; index++) {
|
||||
accountManager.removeAccount(allAccounts[index], null, null);
|
||||
for (Account allAccount : allAccounts) {
|
||||
accountManager.removeAccount(allAccount, null, null);
|
||||
}
|
||||
|
||||
//TODO: fix preference manager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue