mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 17:11:12 +01:00
Added multiple selection
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package eu.faircode.email;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.selection.SelectionTracker;
|
||||
|
||||
public class SelectionPredicateMessage extends SelectionTracker.SelectionPredicate<Long> {
|
||||
|
||||
@Override
|
||||
public boolean canSetStateForKey(@NonNull Long key, boolean nextState) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canSetStateAtPosition(int position, boolean nextState) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canSelectMultiple() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user