mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Clean up unused code
This commit is contained in:
parent
4a84088f9c
commit
d91085b8f3
1 changed files with 0 additions and 23 deletions
|
@ -1,13 +1,8 @@
|
|||
package eu.kanade.tachiyomi.data.download
|
||||
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.os.Build
|
||||
import android.os.Environment
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.provider.Settings
|
||||
import androidx.core.net.toUri
|
||||
import com.hippo.unifile.UniFile
|
||||
import com.jakewharton.rxrelay.PublishRelay
|
||||
import dev.yokai.domain.download.DownloadPreferences
|
||||
|
@ -337,24 +332,6 @@ class Downloader(
|
|||
notifier.onError(context.getString(R.string.couldnt_download_low_space), chapName)
|
||||
return
|
||||
}
|
||||
/*
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R &&
|
||||
!Environment.isExternalStorageManager()
|
||||
) {
|
||||
val intent = Intent(
|
||||
Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION,
|
||||
"package:${context.packageName}".toUri(),
|
||||
)
|
||||
|
||||
notifier.onError(
|
||||
context.getString(R.string.external_storage_download_notice),
|
||||
chapName,
|
||||
download.manga.title,
|
||||
intent,
|
||||
)
|
||||
return
|
||||
}
|
||||
*/
|
||||
val chapterDirname = provider.getChapterDirName(download.chapter, includeId = downloadPreferences.downloadWithId().get())
|
||||
val tmpDir = mangaDir.createDirectory(chapterDirname + TMP_DIR_SUFFIX)!!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue