1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

Fix computeBatchDirection()

This commit is contained in:
cketti 2012-11-03 03:21:30 +01:00
parent e339dd1f10
commit fb5e8eea84

View File

@ -1908,13 +1908,15 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
boolean isBatchFlag = false;
boolean isBatchRead = false;
/*
for (MessageInfoHolder holder : mAdapter.getMessages()) {
if (holder.selected) {
if (!holder.flagged) {
for (int i = 0, end = mAdapter.getCount(); i < end; i++) {
if (mSelected.get(i, false)) {
Cursor cursor = (Cursor) mAdapter.getItem(i);
String flags = cursor.getString(FLAGS_COLUMN);
if (!flags.contains(Flag.FLAGGED.name())) {
isBatchFlag = true;
}
if (!holder.read) {
if (!flags.contains(Flag.SEEN.name())) {
isBatchRead = true;
}
@ -1923,8 +1925,6 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
}
}
}
*/
//TODO: implement
mActionModeCallback.showMarkAsRead(isBatchRead);
mActionModeCallback.showFlag(isBatchFlag);