From 2500c76d769afcf7ca2e9aa9315ef375cc7cafde Mon Sep 17 00:00:00 2001 From: Matija Nalis Date: Thu, 28 Nov 2024 22:22:45 +0100 Subject: [PATCH] remove modifier to test crash as suggested in 4. https://github.com/streetcomplete/StreetComplete/issues/6001#issuecomment-2506739616 --- .../streetcomplete/screens/main/controls/PointerPinButton.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/de/westnordost/streetcomplete/screens/main/controls/PointerPinButton.kt b/app/src/main/java/de/westnordost/streetcomplete/screens/main/controls/PointerPinButton.kt index c9eb8beb77..485592d5a4 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/screens/main/controls/PointerPinButton.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/screens/main/controls/PointerPinButton.kt @@ -58,11 +58,6 @@ fun PointerPinButton( val a = rotate * PI / 180f Surface( onClick = onClick, - modifier = modifier - .proportionalAbsoluteOffset( - x = (-sin(a) / 2.0 - 0.5).toFloat(), - y = (cos(a) / 2.0 - 0.5).toFloat(), - ), enabled = enabled, shape = pointerPinShape, color = colors.backgroundColor(enabled).value,