mirror of https://github.com/M66B/FairEmail.git
Make sure messages is update on swipe
This commit is contained in:
parent
a1ea7330e4
commit
698337ee4f
|
@ -4687,6 +4687,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
same = false;
|
||||
Log.i("keyword colors changed id=" + next.id);
|
||||
}
|
||||
if (prev.update) {
|
||||
Log.i("Always update");
|
||||
same = false;
|
||||
}
|
||||
|
||||
return same;
|
||||
}
|
||||
|
|
|
@ -1726,6 +1726,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
return;
|
||||
}
|
||||
|
||||
message.update = true;
|
||||
|
||||
if (message.accountProtocol != EntityAccount.TYPE_IMAP)
|
||||
if (direction == ItemTouchHelper.LEFT) {
|
||||
adapter.notifyItemChanged(pos);
|
||||
|
|
|
@ -59,7 +59,10 @@ public class TupleMessageEx extends EntityMessage {
|
|||
public Integer ui_importance;
|
||||
|
||||
@Ignore
|
||||
boolean duplicate;
|
||||
public boolean update = false;
|
||||
|
||||
@Ignore
|
||||
public boolean duplicate;
|
||||
|
||||
@Ignore
|
||||
public Integer[] keyword_colors;
|
||||
|
|
Loading…
Reference in New Issue