From 57ce20e95fc92eb0ee3681d35252205261b21248 Mon Sep 17 00:00:00 2001 From: LagradOst Date: Thu, 8 Jul 2021 21:39:49 +0200 Subject: [PATCH] fixed --- app/src/main/AndroidManifest.xml | 2 +- app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt | 3 +-- .../{recivers => receivers}/VideoDownloadRestartReceiver.kt | 2 +- .../cloudstream3/services/VideoDownloadKeepAliveService.kt | 2 +- .../com/lagradost/cloudstream3/utils/VideoDownloadManager.kt | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) rename app/src/main/java/com/lagradost/cloudstream3/{recivers => receivers}/VideoDownloadRestartReceiver.kt (95%) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index bfc756f2..c18da128 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -35,7 +35,7 @@ diff --git a/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt b/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt index 4b2cc8f4..55cb8755 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/MainActivity.kt @@ -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 diff --git a/app/src/main/java/com/lagradost/cloudstream3/recivers/VideoDownloadRestartReceiver.kt b/app/src/main/java/com/lagradost/cloudstream3/receivers/VideoDownloadRestartReceiver.kt similarity index 95% rename from app/src/main/java/com/lagradost/cloudstream3/recivers/VideoDownloadRestartReceiver.kt rename to app/src/main/java/com/lagradost/cloudstream3/receivers/VideoDownloadRestartReceiver.kt index d6dd7bf4..b84d757c 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/recivers/VideoDownloadRestartReceiver.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/receivers/VideoDownloadRestartReceiver.kt @@ -1,4 +1,4 @@ -package com.lagradost.cloudstream3.recivers +package com.lagradost.cloudstream3.receivers import android.content.BroadcastReceiver import android.content.Context diff --git a/app/src/main/java/com/lagradost/cloudstream3/services/VideoDownloadKeepAliveService.kt b/app/src/main/java/com/lagradost/cloudstream3/services/VideoDownloadKeepAliveService.kt index 05a0e280..9bbf846d 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/services/VideoDownloadKeepAliveService.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/services/VideoDownloadKeepAliveService.kt @@ -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 diff --git a/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadManager.kt b/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadManager.kt index 17e58aa7..dff49eb3 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadManager.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/utils/VideoDownloadManager.kt @@ -147,7 +147,7 @@ object VideoDownloadManager { val downloadStatusEvent = Event>() val downloadEvent = Event>() val downloadProgressEvent = Event>() - private val downloadQueue = LinkedList() + val downloadQueue = LinkedList() private var hasCreatedNotChanel = false private fun Context.createNotificationChannel() {