mirror of https://github.com/M66B/FairEmail.git
Show messages with disabled identity dimmed
This commit is contained in:
parent
02e58770e9
commit
e98c5aea27
|
@ -552,7 +552,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
// Selected / disabled
|
||||
view.setActivated(selectionTracker != null && selectionTracker.isSelected(message.id));
|
||||
view.setAlpha(message.uid == null && !EntityFolder.OUTBOX.equals(message.folderType)
|
||||
view.setAlpha(
|
||||
(EntityFolder.OUTBOX.equals(message.folderType)
|
||||
? message.identitySynchronize == null || !message.identitySynchronize
|
||||
: message.uid == null)
|
||||
? Helper.LOW_LIGHT : 1.0f);
|
||||
|
||||
// Duplicate
|
||||
|
|
|
@ -44,7 +44,7 @@ public interface DaoMessage {
|
|||
@Query("SELECT message.*" +
|
||||
", account.name AS accountName, IFNULL(identity.color, account.color) AS accountColor, account.notify AS accountNotify" +
|
||||
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
||||
", identity.name AS identityName, identity.email AS identityEmail" +
|
||||
", identity.name AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize" +
|
||||
", COUNT(message.id) AS count" +
|
||||
", " + unseen_unified + " AS unseen" +
|
||||
", " + unflagged_unified + " AS unflagged" +
|
||||
|
@ -90,7 +90,7 @@ public interface DaoMessage {
|
|||
@Query("SELECT message.*" +
|
||||
", account.name AS accountName, IFNULL(identity.color, account.color) AS accountColor, account.notify AS accountNotify" +
|
||||
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
||||
", identity.name AS identityName, identity.email AS identityEmail" +
|
||||
", identity.name AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize" +
|
||||
", COUNT(message.id) AS count" +
|
||||
", " + unseen_folder + " AS unseen" +
|
||||
", " + unflagged_folder + " AS unflagged" +
|
||||
|
@ -133,7 +133,7 @@ public interface DaoMessage {
|
|||
@Query("SELECT message.*" +
|
||||
", account.name AS accountName, IFNULL(identity.color, account.color) AS accountColor, account.notify AS accountNotify" +
|
||||
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
||||
", identity.name AS identityName, identity.email AS identityEmail" +
|
||||
", identity.name AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize" +
|
||||
", 1 AS count" +
|
||||
", CASE WHEN message.ui_seen THEN 0 ELSE 1 END AS unseen" +
|
||||
", CASE WHEN message.ui_flagged THEN 0 ELSE 1 END AS unflagged" +
|
||||
|
@ -239,7 +239,7 @@ public interface DaoMessage {
|
|||
@Query("SELECT message.*" +
|
||||
", account.name AS accountName, identity.color AS accountColor, account.notify AS accountNotify" +
|
||||
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
||||
", identity.name AS identityName, identity.email AS identityEmail" +
|
||||
", identity.name AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize" +
|
||||
", 1 AS count" +
|
||||
", CASE WHEN message.ui_seen THEN 0 ELSE 1 END AS unseen" +
|
||||
", CASE WHEN message.ui_flagged THEN 0 ELSE 1 END AS unflagged" +
|
||||
|
@ -257,7 +257,7 @@ public interface DaoMessage {
|
|||
@Query("SELECT message.*" +
|
||||
", account.name AS accountName, IFNULL(identity.color, account.color) AS accountColor, account.notify AS accountNotify" +
|
||||
", folder.name AS folderName, folder.display AS folderDisplay, folder.type AS folderType" +
|
||||
", identity.name AS identityName, identity.email AS identityEmail" +
|
||||
", identity.name AS identityName, identity.email AS identityEmail, identity.synchronize AS identitySynchronize" +
|
||||
", 1 AS count" +
|
||||
", 1 AS unseen" +
|
||||
", 0 AS unflagged" +
|
||||
|
|
|
@ -32,6 +32,7 @@ public class TupleMessageEx extends EntityMessage {
|
|||
public String folderType;
|
||||
public String identityName;
|
||||
public String identityEmail;
|
||||
public Boolean identitySynchronize;
|
||||
public int count;
|
||||
public int unseen;
|
||||
public int unflagged;
|
||||
|
@ -55,6 +56,7 @@ public class TupleMessageEx extends EntityMessage {
|
|||
this.folderType.equals(other.folderType) &&
|
||||
Objects.equals(this.identityName, other.identityName) &&
|
||||
Objects.equals(this.identityEmail, other.identityEmail) &&
|
||||
Objects.equals(this.identitySynchronize, other.identitySynchronize) &&
|
||||
this.count == other.count &&
|
||||
this.unseen == other.unseen &&
|
||||
this.unflagged == other.unflagged &&
|
||||
|
|
Loading…
Reference in New Issue