From 824cafd3b96a173936682da15f0c420089be9a4f Mon Sep 17 00:00:00 2001 From: machiav3lli Date: Thu, 18 Aug 2022 23:13:00 +0200 Subject: [PATCH] Update: InstallerService to normal Service (revert d3a2c78f70ed1fe1358cbd188e8f3450ff3fb4bc) --- .../com/machiav3lli/fdroid/installer/InstallerService.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/machiav3lli/fdroid/installer/InstallerService.kt b/src/main/kotlin/com/machiav3lli/fdroid/installer/InstallerService.kt index fbe7a1d0..cc4035d4 100644 --- a/src/main/kotlin/com/machiav3lli/fdroid/installer/InstallerService.kt +++ b/src/main/kotlin/com/machiav3lli/fdroid/installer/InstallerService.kt @@ -3,11 +3,11 @@ package com.machiav3lli.fdroid.installer import android.app.NotificationChannel import android.app.NotificationManager import android.app.PendingIntent +import android.app.Service import android.content.Intent import android.content.pm.PackageInstaller import android.net.Uri import android.os.IBinder -import androidx.lifecycle.LifecycleService import com.machiav3lli.fdroid.NOTIFICATION_CHANNEL_INSTALLER import com.machiav3lli.fdroid.R import com.machiav3lli.fdroid.ui.activities.MainActivityX @@ -20,7 +20,7 @@ import com.machiav3lli.fdroid.utility.notifyStatus * Runs during or after a PackageInstaller session in order to handle completion, failure, or * interruptions requiring user intervention, such as the package installer prompt. */ -class InstallerService : LifecycleService() { +class InstallerService : Service() { companion object { const val KEY_ACTION = "installerAction" const val KEY_APP_NAME = "appName" @@ -66,7 +66,7 @@ class InstallerService : LifecycleService() { } override fun onBind(intent: Intent): IBinder? { - super.onBind(intent) + //super.onBind(intent) return null }