check for key status in legacy API key lists
This commit is contained in:
committed by
Vincent Breitmoser
parent
8a33fa8540
commit
035a62e920
@@ -40,6 +40,12 @@ public class KeyChoiceAdapter extends FlexibleAdapter<KeyChoiceItem> {
|
||||
return new KeyChoiceAdapter(items, Objects.requireNonNull(onKeyClickListener), Mode.IDLE, null);
|
||||
}
|
||||
|
||||
public static KeyChoiceAdapter createSingleClickableAdapter(List<UnifiedKeyInfo> items,
|
||||
OnKeyClickListener onKeyClickListener,
|
||||
KeyDisabledPredicate keyDisabledPredicate) {
|
||||
return new KeyChoiceAdapter(items, Objects.requireNonNull(onKeyClickListener), Mode.IDLE, keyDisabledPredicate);
|
||||
}
|
||||
|
||||
public static KeyChoiceAdapter createSingleChoiceAdapter(List<UnifiedKeyInfo> items) {
|
||||
return new KeyChoiceAdapter(items, null, Mode.SINGLE, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user