From 9982fdb4483921ccb3b682efd801a1263671bd3a Mon Sep 17 00:00:00 2001 From: JCPistori <91566210+JCPistori@users.noreply.github.com> Date: Fri, 14 Nov 2025 16:09:33 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20evita=20tentar=20dar=20attach=20do=20for?= =?UTF-8?q?eground=20service=20ao=20ocorrer=20exce=C3=A7=C3=A3o=20na=20pri?= =?UTF-8?q?meira=20vez=20que=20tentou=20fazer=20onStartCommand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../flutter_foreground_task/service/ForegroundService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/pravera/flutter_foreground_task/service/ForegroundService.kt b/android/src/main/kotlin/com/pravera/flutter_foreground_task/service/ForegroundService.kt index 0499500..fc3255d 100644 --- a/android/src/main/kotlin/com/pravera/flutter_foreground_task/service/ForegroundService.kt +++ b/android/src/main/kotlin/com/pravera/flutter_foreground_task/service/ForegroundService.kt @@ -174,7 +174,7 @@ class ForegroundService : Service() { } } catch (e: Exception) { Log.e(TAG, e.message, e) - stopForegroundService(true) + stopForegroundService(false) } return if (isSetStopWithTaskFlag) {