From bdee5253367be5aa01e7871d2e65841fc550f98c Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 18 Apr 2020 15:28:44 -0400 Subject: [PATCH] Lint fixes --- .../main/java/eu/kanade/tachiyomi/data/glide/FileFetcher.kt | 2 +- .../eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/glide/FileFetcher.kt b/app/src/main/java/eu/kanade/tachiyomi/data/glide/FileFetcher.kt index 5397036426..555314675e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/glide/FileFetcher.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/glide/FileFetcher.kt @@ -5,12 +5,12 @@ import android.util.Log import com.bumptech.glide.Priority import com.bumptech.glide.load.DataSource import com.bumptech.glide.load.data.DataFetcher -import timber.log.Timber import java.io.File import java.io.FileInputStream import java.io.FileNotFoundException import java.io.IOException import java.io.InputStream +import timber.log.Timber open class FileFetcher(private val file: File) : DataFetcher { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt index 8c401b5723..2c4c6c29f1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersPresenter.kt @@ -67,8 +67,7 @@ class ChaptersPresenter( // Prepare the relay. chaptersRelay.flatMap { applyChapterFilters(it) } .observeOn(AndroidSchedulers.mainThread()) - .subscribeLatestCache(ChaptersController::onNextChapters) - { _, error -> Timber.e(error) } + .subscribeLatestCache(ChaptersController::onNextChapters) { _, error -> Timber.e(error) } // Add the subscription that retrieves the chapters from the database, keeps subscribed to // changes, and sends the list of chapters to the relay.