From 2f5b852e009da921a61da6230e0a4658b5e7d3bc Mon Sep 17 00:00:00 2001 From: LZX <1820455493@qq.com> Date: Tue, 20 Oct 2026 19:53:59 +0800 Subject: [PATCH] ui: prevent moving marker and updating mock location on map tap when service is disabled --- .../com/lzxnone/openloc/ui/screens/location/LocationScreen.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/lzxnone/openloc/ui/screens/location/LocationScreen.kt b/app/src/main/java/com/lzxnone/openloc/ui/screens/location/LocationScreen.kt index 3301bd8..1f6fa5d 100644 --- a/app/src/main/java/com/lzxnone/openloc/ui/screens/location/LocationScreen.kt +++ b/app/src/main/java/com/lzxnone/openloc/ui/screens/location/LocationScreen.kt @@ -581,6 +581,7 @@ fun LocationScreen( context.getString(R.string.location_mock_disabled_prompt), Toast.LENGTH_SHORT ).show() + return true } // 点击地图位置时,只移动标记,不把点击位置强制作为视图中心 updatePositionAndResolveName(