service tests

This commit is contained in:
X1nto 2020-06-30 14:44:04 +04:00
parent bc2bcb7253
commit 014b3fa18c
3 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application <application
android:name=".core.App" android:name=".core.App"

View File

@ -31,7 +31,7 @@ class MicrogDownloadService: Service() {
} }
} }
stopSelf() stopSelf()
return START_STICKY return START_NOT_STICKY
} }
private fun downloadMicrog() { private fun downloadMicrog() {

View File

@ -37,7 +37,7 @@ class VancedDownloadService: Service() {
} }
stopSelf() stopSelf()
return START_STICKY return START_NOT_STICKY
} }
private fun downloadSplits( private fun downloadSplits(