1
0
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:
András Veres-Szentkirályi 2014-02-15 22:12:57 +01:00
parent 21fe3f6cd2
commit 7ae3a15d7c

View File

@ -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;
}
/**