diff --git a/app/src/main/java/com/vanced/manager/core/installer/AppInstaller.kt b/app/src/main/java/com/vanced/manager/core/installer/AppInstaller.kt index 7c53e0dd..013e8a6a 100644 --- a/app/src/main/java/com/vanced/manager/core/installer/AppInstaller.kt +++ b/app/src/main/java/com/vanced/manager/core/installer/AppInstaller.kt @@ -29,7 +29,7 @@ class AppInstaller: Service() { inputStream.close() outputStream.close() session.commit(pendingIntent.intentSender) - return START_STICKY + return START_NOT_STICKY } override fun onBind(intent: Intent?): IBinder? { diff --git a/app/src/main/java/com/vanced/manager/core/installer/SplitInstaller.kt b/app/src/main/java/com/vanced/manager/core/installer/SplitInstaller.kt index 6d76af4e..8e235f32 100644 --- a/app/src/main/java/com/vanced/manager/core/installer/SplitInstaller.kt +++ b/app/src/main/java/com/vanced/manager/core/installer/SplitInstaller.kt @@ -13,7 +13,7 @@ class SplitInstaller: Service() { override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { installSplitApk(this) - return START_STICKY + return START_NOT_STICKY } override fun onBind(intent: Intent?): IBinder? { diff --git a/app/src/main/java/com/vanced/manager/ui/fragments/UpdateCheckFragment.kt b/app/src/main/java/com/vanced/manager/ui/fragments/UpdateCheckFragment.kt index faa48f90..36df1618 100644 --- a/app/src/main/java/com/vanced/manager/ui/fragments/UpdateCheckFragment.kt +++ b/app/src/main/java/com/vanced/manager/ui/fragments/UpdateCheckFragment.kt @@ -12,7 +12,6 @@ import android.widget.ProgressBar import android.widget.TextView import android.widget.Toast import androidx.fragment.app.DialogFragment -import androidx.preference.PreferenceManager import com.dezlum.codelabs.getjson.GetJson import com.downloader.Error import com.downloader.OnDownloadListener @@ -74,10 +73,6 @@ class UpdateCheckFragment : DialogFragment() { } .start(object : OnDownloadListener{ override fun onDownloadComplete() { - val prefs = PreferenceManager.getDefaultSharedPreferences(requireContext()) - prefs.getBoolean("isUpgrading", false) - prefs.edit().putBoolean("isUpgrading", true).apply() - activity?.let { installApp( it,