Made a pass through the code to introduce lambdas / method references in the places the Android Studio suggested.

This commit is contained in:
Paul Hawke 2017-07-22 18:04:40 -05:00
parent 3824f31ef9
commit 4796557fb7
25 changed files with 206 additions and 374 deletions

View file

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