mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 19:34:15 +01:00
Added multiple selection
This commit is contained in:
25
app/src/main/java/eu/faircode/email/ItemDetailsMessage.java
Normal file
25
app/src/main/java/eu/faircode/email/ItemDetailsMessage.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user