Make sure messages is update on swipe

This commit is contained in:
M66B 2020-02-20 13:47:29 +01:00
parent a1ea7330e4
commit 698337ee4f
3 changed files with 10 additions and 1 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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;