mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 10:01:22 +01:00
22 lines
534 B
Java
22 lines
534 B
Java
|
|
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;
|
||
|
|
}
|
||
|
|
}
|