diff --git a/app/src/main/java/io/legado/app/service/CheckSourceService.kt b/app/src/main/java/io/legado/app/service/CheckSourceService.kt index 060e89f19..247a137a9 100644 --- a/app/src/main/java/io/legado/app/service/CheckSourceService.kt +++ b/app/src/main/java/io/legado/app/service/CheckSourceService.kt @@ -1,12 +1,8 @@ package io.legado.app.service -import android.app.Service -import android.content.Intent -import android.os.IBinder - -class CheckSourceService : Service() { - override fun onBind(intent: Intent?): IBinder? { - return null - } +import io.legado.app.base.BaseService + +class CheckSourceService : BaseService() { + } \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/service/DownloadService.kt b/app/src/main/java/io/legado/app/service/DownloadService.kt index 58baf3188..5a1233708 100644 --- a/app/src/main/java/io/legado/app/service/DownloadService.kt +++ b/app/src/main/java/io/legado/app/service/DownloadService.kt @@ -1,12 +1,8 @@ package io.legado.app.service -import android.app.Service -import android.content.Intent -import android.os.IBinder - -class DownloadService : Service() { - override fun onBind(intent: Intent?): IBinder? { - return null - } +import io.legado.app.base.BaseService + +class DownloadService : BaseService() { + } \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/service/ShareService.kt b/app/src/main/java/io/legado/app/service/ShareService.kt index 0abfb5db9..49624ecc3 100644 --- a/app/src/main/java/io/legado/app/service/ShareService.kt +++ b/app/src/main/java/io/legado/app/service/ShareService.kt @@ -1,12 +1,8 @@ package io.legado.app.service -import android.app.Service -import android.content.Intent -import android.os.IBinder - -class ShareService : Service() { - override fun onBind(intent: Intent?): IBinder? { - return null - } +import io.legado.app.base.BaseService + +class ShareService : BaseService() { + } \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/service/UpdateService.kt b/app/src/main/java/io/legado/app/service/UpdateService.kt index 266d0a5bd..9841d1b9a 100644 --- a/app/src/main/java/io/legado/app/service/UpdateService.kt +++ b/app/src/main/java/io/legado/app/service/UpdateService.kt @@ -1,12 +1,8 @@ package io.legado.app.service -import android.app.Service -import android.content.Intent -import android.os.IBinder - -class UpdateService : Service() { - override fun onBind(intent: Intent?): IBinder? { - return null - } +import io.legado.app.base.BaseService + +class UpdateService : BaseService() { + } \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/service/WebService.kt b/app/src/main/java/io/legado/app/service/WebService.kt index 366a48ede..99334fd1c 100644 --- a/app/src/main/java/io/legado/app/service/WebService.kt +++ b/app/src/main/java/io/legado/app/service/WebService.kt @@ -1,12 +1,12 @@ package io.legado.app.service -import android.app.Service -import android.content.Intent -import android.os.IBinder +import io.legado.app.base.BaseService -class WebService : Service() { - override fun onBind(intent: Intent?): IBinder? { - return null +class WebService : BaseService() { + + + override fun onCreate() { + super.onCreate() } } \ No newline at end of file