This commit is contained in:
LagradOst 2021-07-08 21:39:49 +02:00
parent 8d0d37093f
commit 57ce20e95f
5 changed files with 5 additions and 6 deletions

View File

@ -35,7 +35,7 @@
<receiver
android:name=".recivers.VideoDownloadRestartReceiver"
android:name=".receivers.VideoDownloadRestartReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>

View File

@ -17,9 +17,8 @@ import com.lagradost.cloudstream3.UIHelper.checkWrite
import com.lagradost.cloudstream3.UIHelper.hasPIPPermission
import com.lagradost.cloudstream3.UIHelper.requestRW
import com.lagradost.cloudstream3.UIHelper.shouldShowPIPMode
import com.lagradost.cloudstream3.recivers.VideoDownloadRestartReceiver
import com.lagradost.cloudstream3.receivers.VideoDownloadRestartReceiver
import com.lagradost.cloudstream3.services.RESTART_ALL_DOWNLOADS_AND_QUEUE
import com.lagradost.cloudstream3.services.RESTART_NONE
import com.lagradost.cloudstream3.services.START_VALUE_KEY
import com.lagradost.cloudstream3.services.VideoDownloadKeepAliveService
import com.lagradost.cloudstream3.utils.VideoDownloadManager

View File

@ -1,4 +1,4 @@
package com.lagradost.cloudstream3.recivers
package com.lagradost.cloudstream3.receivers
import android.content.BroadcastReceiver
import android.content.Context

View File

@ -4,7 +4,7 @@ import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.util.Log
import com.lagradost.cloudstream3.recivers.VideoDownloadRestartReceiver
import com.lagradost.cloudstream3.receivers.VideoDownloadRestartReceiver
import com.lagradost.cloudstream3.utils.DataStore.getKey
import com.lagradost.cloudstream3.utils.DataStore.getKeys
import com.lagradost.cloudstream3.utils.VideoDownloadManager

View File

@ -147,7 +147,7 @@ object VideoDownloadManager {
val downloadStatusEvent = Event<Pair<Int, DownloadType>>()
val downloadEvent = Event<Pair<Int, DownloadActionType>>()
val downloadProgressEvent = Event<Pair<Int, Long>>()
private val downloadQueue = LinkedList<DownloadResumePackage>()
val downloadQueue = LinkedList<DownloadResumePackage>()
private var hasCreatedNotChanel = false
private fun Context.createNotificationChannel() {