mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-19 20:31:49 -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)
|
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;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user