Horis 2 سال پیش
والد
کامیت
6f7d4c6e35
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      app/src/main/java/io/legado/app/service/ExportBookService.kt

+ 4 - 1
app/src/main/java/io/legado/app/service/ExportBookService.kt

@@ -123,7 +123,10 @@ class ExportBookService : BaseService() {
                 toastOnUi(it.localizedMessage)
             }
 
-            IntentAction.stop -> stopSelf()
+            IntentAction.stop -> {
+                notificationManager.cancel(NotificationId.ExportBook)
+                stopSelf()
+            }
         }
         return super.onStartCommand(intent, flags, startId)
     }