Removed unused entry
This commit is contained in:
parent
fd4214ccf3
commit
78282c1a49
@ -35,11 +35,6 @@ open class DownloadService : RemoteFileService() {
|
|||||||
.getMimeTypeFromExtension(extension)
|
.getMimeTypeFromExtension(extension)
|
||||||
.orEmpty()
|
.orEmpty()
|
||||||
|
|
||||||
override fun map(subject: DownloadSubject, file: File): File = when (subject) {
|
|
||||||
is Module -> file // todo tbd
|
|
||||||
else -> file
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onFinished(file: File, subject: DownloadSubject) = when (subject) {
|
override fun onFinished(file: File, subject: DownloadSubject) = when (subject) {
|
||||||
is Magisk -> onFinishedInternal(file, subject)
|
is Magisk -> onFinishedInternal(file, subject)
|
||||||
is Module -> onFinishedInternal(file, subject)
|
is Module -> onFinishedInternal(file, subject)
|
||||||
|
@ -108,7 +108,6 @@ abstract class RemoteFileService : NotificationService() {
|
|||||||
var off = -1
|
var off = -1
|
||||||
var entry: ZipEntry? = zin.nextEntry
|
var entry: ZipEntry? = zin.nextEntry
|
||||||
while (entry != null) {
|
while (entry != null) {
|
||||||
Timber.i("Let's gooo (${entry.name})")
|
|
||||||
if (off < 0) {
|
if (off < 0) {
|
||||||
off = entry.name.indexOf('/') + 1
|
off = entry.name.indexOf('/') + 1
|
||||||
}
|
}
|
||||||
@ -167,8 +166,6 @@ abstract class RemoteFileService : NotificationService() {
|
|||||||
subject: DownloadSubject
|
subject: DownloadSubject
|
||||||
): NotificationCompat.Builder
|
): NotificationCompat.Builder
|
||||||
|
|
||||||
protected abstract fun map(subject: DownloadSubject, file: File): File
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val ARG_URL = "arg_url"
|
const val ARG_URL = "arg_url"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user