mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
converted for to for-each loop with short circuit evaluation
This commit is contained in:
parent
21fe3f6cd2
commit
7ae3a15d7c
@ -3462,12 +3462,11 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean loadFinished = true;
|
||||
for (int i = 0; i < mCursorValid.length; i++) {
|
||||
loadFinished &= mCursorValid[i];
|
||||
for (boolean cursorValid : mCursorValid) {
|
||||
if (!cursorValid) return false;
|
||||
}
|
||||
|
||||
return loadFinished;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user