|
@@ -14,7 +14,10 @@ import eu.kanade.tachiyomi.data.download.DownloadManager
|
|
|
import eu.kanade.tachiyomi.data.download.DownloadService
|
|
|
import eu.kanade.tachiyomi.data.library.LibraryUpdateService
|
|
|
import eu.kanade.tachiyomi.ui.reader.ReaderActivity
|
|
|
-import eu.kanade.tachiyomi.util.*
|
|
|
+import eu.kanade.tachiyomi.util.DiskUtil
|
|
|
+import eu.kanade.tachiyomi.util.getUriCompat
|
|
|
+import eu.kanade.tachiyomi.util.notificationManager
|
|
|
+import eu.kanade.tachiyomi.util.toast
|
|
|
import uy.kohesive.injekt.injectLazy
|
|
|
import java.io.File
|
|
|
import eu.kanade.tachiyomi.BuildConfig.APPLICATION_ID as ID
|
|
@@ -118,7 +121,7 @@ class NotificationReceiver : BroadcastReceiver() {
|
|
|
|
|
|
// Delete file
|
|
|
val file = File(path)
|
|
|
- file.deleteIfExists()
|
|
|
+ file.delete()
|
|
|
|
|
|
DiskUtil.scanMedia(context, file)
|
|
|
}
|
|
@@ -274,4 +277,4 @@ class NotificationReceiver : BroadcastReceiver() {
|
|
|
return PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT)
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|