From a9ac0743f74bed91500579437e3511e14f8dd2aa Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 12 Jun 2025 14:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9C=8D=E5=8A=A1=E7=9A=84?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/xypower/mpmaster/MpMasterService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java b/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java index a58badd5..6b342c7a 100644 --- a/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java +++ b/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java @@ -893,7 +893,7 @@ public class MpMasterService extends Service { if (intent == null) { stopForeground(true); - stopSelf(); + stopSelf(startId); return START_NOT_STICKY; } @@ -931,14 +931,14 @@ public class MpMasterService extends Service { break; case ACTION_STOP: stopForeground(true); - stopSelf(); + stopSelf(startId); break; default: stopForeground(true); stopSelf(); } - return START_NOT_STICKY; + return START_REDELIVER_INTENT; } private void connect() {