Minor
This commit is contained in:
parent
1564379bd1
commit
a3a0c7f41d
|
@ -83,6 +83,7 @@ class CachedDataSource(
|
||||||
return upstreamDataSource.open(dataSpec)
|
return upstreamDataSource.open(dataSpec)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("MagicNumber")
|
||||||
override fun read(buffer: ByteArray, offset: Int, length: Int): Int {
|
override fun read(buffer: ByteArray, offset: Int, length: Int): Int {
|
||||||
if (offset > 0 || length > 4)
|
if (offset > 0 || length > 4)
|
||||||
Timber.d("CachedDatasource: Read: %s %s", offset, length)
|
Timber.d("CachedDatasource: Read: %s %s", offset, length)
|
||||||
|
|
|
@ -68,8 +68,7 @@ class Downloader(
|
||||||
override fun run() {
|
override fun run() {
|
||||||
try {
|
try {
|
||||||
Timber.w("Checking Downloads")
|
Timber.w("Checking Downloads")
|
||||||
// FIXME
|
checkDownloadsInternal()
|
||||||
// checkDownloadsInternal()
|
|
||||||
} catch (all: Exception) {
|
} catch (all: Exception) {
|
||||||
Timber.e(all, "checkDownloads() failed.")
|
Timber.e(all, "checkDownloads() failed.")
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue