Added multiple selection

This commit is contained in:
M66B
2018-10-24 09:09:07 +00:00
parent 1fdb9c70a8
commit 61441c3c8a
6 changed files with 153 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
package eu.faircode.email;
import androidx.annotation.Nullable;
import androidx.recyclerview.selection.ItemDetailsLookup;
public class ItemDetailsMessage extends ItemDetailsLookup.ItemDetails<Long> {
private int pos;
private Long key;
ItemDetailsMessage(int pos, Long id) {
this.pos = pos;
this.key = id;
}
@Override
public int getPosition() {
return pos;
}
@Nullable
@Override
public Long getSelectionKey() {
return key;
}
}