mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-20 04:31:47 -05:00
Fix computeBatchDirection()
This commit is contained in:
parent
e339dd1f10
commit
fb5e8eea84
@ -1908,13 +1908,15 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
|||||||
boolean isBatchFlag = false;
|
boolean isBatchFlag = false;
|
||||||
boolean isBatchRead = false;
|
boolean isBatchRead = false;
|
||||||
|
|
||||||
/*
|
for (int i = 0, end = mAdapter.getCount(); i < end; i++) {
|
||||||
for (MessageInfoHolder holder : mAdapter.getMessages()) {
|
if (mSelected.get(i, false)) {
|
||||||
if (holder.selected) {
|
Cursor cursor = (Cursor) mAdapter.getItem(i);
|
||||||
if (!holder.flagged) {
|
String flags = cursor.getString(FLAGS_COLUMN);
|
||||||
|
|
||||||
|
if (!flags.contains(Flag.FLAGGED.name())) {
|
||||||
isBatchFlag = true;
|
isBatchFlag = true;
|
||||||
}
|
}
|
||||||
if (!holder.read) {
|
if (!flags.contains(Flag.SEEN.name())) {
|
||||||
isBatchRead = true;
|
isBatchRead = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1923,8 +1925,6 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
//TODO: implement
|
|
||||||
|
|
||||||
mActionModeCallback.showMarkAsRead(isBatchRead);
|
mActionModeCallback.showMarkAsRead(isBatchRead);
|
||||||
mActionModeCallback.showFlag(isBatchFlag);
|
mActionModeCallback.showFlag(isBatchFlag);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user