1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2025-02-16 15:00:14 -05:00

Conversation: Filter status update by priority

This commit is contained in:
Sebastian Kaspari 2010-05-12 10:52:34 +02:00
parent 40169d4869
commit 0924d7bc82

View File

@ -170,6 +170,16 @@ public abstract class Conversation
*/
public void setStatus(int status)
{
// Selected status can only be changed by deselecting
if (this.status == STATUS_SELECTED && status != STATUS_DEFAULT) {
return;
}
// Highlight status can only be changed by selecting
if (this.status == STATUS_HIGHLIGHT && status != STATUS_SELECTED) {
return;
}
this.status = status;
}