fix CardZoom not working

This commit is contained in:
Anthony Calosa
2023-04-17 20:31:42 +08:00
committed by GitHub
parent 797dc055c7
commit 9857084217

View File

@@ -66,9 +66,9 @@ public class CardZoom extends FOverlay {
}
public static void show(final List<?> items0, int currentIndex0, ActivateHandler activateHandler0) {
items = items0;
if (items == null) { return; }
if (currentIndex0 < 0 || items.size() <= currentIndex0) { return; }
items = items0;
activateHandler = activateHandler0;
currentIndex = currentIndex0;
initialIndex = currentIndex0;