1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 09:08:49 -05:00

. Added Z as keyboard shortcut to toggle read flag

. Removed duplicate adapter notification and hence data reload
This commit is contained in:
Bao-Long Nguyen-Trong 2009-05-05 16:26:04 +00:00
parent 28b054c8d2
commit 5be7ee8517

View File

@ -755,6 +755,7 @@ public class FolderMessageList extends ExpandableListActivity
case KeyEvent.KEYCODE_G: { onToggleFlag(message); return true; }
case KeyEvent.KEYCODE_M: { onMove(message); return true; }
case KeyEvent.KEYCODE_Y: { onCopy(message); return true; }
case KeyEvent.KEYCODE_Z: { onToggleRead(message); return true; }
}
}
}
@ -1182,7 +1183,8 @@ public class FolderMessageList extends ExpandableListActivity
MessagingController.getInstance(getApplication()).markMessageRead(mAccount,
holder.message.getFolder().getName(), holder.uid, !holder.read);
holder.read = !holder.read;
mHandler.dataChanged();
//The handler already notified as we have a listener registered with the messaging controller
//mHandler.dataChanged();
// onRefresh(false);
}