From fbc16529ebea7e8f6ef82decf46c28d359de2913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=88=BA=E8=9E=88?= Date: Mon, 13 Apr 2026 19:43:25 +0800 Subject: [PATCH] fix: Swipe ActionResult (#1334) --- app/src/main/kotlin/li/songe/gkd/data/GkdAction.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/li/songe/gkd/data/GkdAction.kt b/app/src/main/kotlin/li/songe/gkd/data/GkdAction.kt index a6952a4d..0af57783 100644 --- a/app/src/main/kotlin/li/songe/gkd/data/GkdAction.kt +++ b/app/src/main/kotlin/li/songe/gkd/data/GkdAction.kt @@ -210,11 +210,17 @@ sealed class ActionPerformer(val action: String) { locationProps: RawSubscription.LocationProps, ): ActionResult { val rect = node.casted.boundsInScreen - val swipeArg = locationProps.swipeArg ?: return None.perform(node, locationProps) + val swipeArg = locationProps.swipeArg ?: return ActionResult( + action = action, + result = false, + ) val startP = swipeArg.start.calc(rect) val endP = swipeArg.end?.calc(rect) ?: startP if (startP == null || endP == null) { - return None.perform(node, locationProps) + return ActionResult( + action = action, + result = false, + ) } val startX = startP.first val startY = startP.second