mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Double click per message
This commit is contained in:
@@ -322,7 +322,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
|
||||
private boolean gotoTop = false;
|
||||
private Integer gotoPos = null;
|
||||
private boolean firstClick = false;
|
||||
private AsyncPagedListDiffer<TupleMessageEx> differ;
|
||||
private Map<Long, Integer> keyPosition = new HashMap<>();
|
||||
private Map<Integer, Long> positionKey = new HashMap<>();
|
||||
@@ -4339,13 +4338,15 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
return;
|
||||
}
|
||||
|
||||
firstClick = !firstClick;
|
||||
boolean firstClick = !properties.getValue("firstClick", message.id);
|
||||
properties.setValue("firstClick", message.id, firstClick);
|
||||
if (firstClick) {
|
||||
ApplicationEx.getMainHandler().postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
boolean firstClick = properties.getValue("firstClick", message.id);
|
||||
if (firstClick) {
|
||||
firstClick = false;
|
||||
properties.setValue("firstClick", message.id, false);
|
||||
lbm.sendBroadcast(viewThread);
|
||||
properties.setValue("selected", message.id, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user