mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-17 07:30:16 -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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean loadFinished = true;
|
for (boolean cursorValid : mCursorValid) {
|
||||||
for (int i = 0; i < mCursorValid.length; i++) {
|
if (!cursorValid) return false;
|
||||||
loadFinished &= mCursorValid[i];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return loadFinished;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user