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:
parent
40169d4869
commit
0924d7bc82
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user