From 3839d582890165608ca230619c06cb81dd479e4a Mon Sep 17 00:00:00 2001 From: KaiserBh Date: Mon, 20 Nov 2023 07:50:56 +1100 Subject: [PATCH] chore: lint Signed-off-by: KaiserBh --- .../more/settings/screen/SettingsDataScreen.kt | 7 ++++--- .../main/java/eu/kanade/tachiyomi/data/sync/SyncDataJob.kt | 1 - .../tachiyomi/ui/setting/track/GoogleDriveLoginActivity.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt index 70debc941..6723717ad 100644 --- a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt @@ -334,7 +334,6 @@ object SettingsDataScreen : SearchableSettings { ), ) + getSyncServicePreferences(syncPreferences, syncService) } - } @Composable @@ -350,9 +349,11 @@ private fun getSyncServicePreferences(syncPreferences: SyncPreferences, syncServ } } - @Composable -private fun getBasePreferences(syncServiceType: SyncManager.SyncService, syncPreferences: SyncPreferences): List { +private fun getBasePreferences( + syncServiceType: SyncManager.SyncService, + syncPreferences: SyncPreferences, +): List { return when (syncServiceType) { SyncManager.SyncService.NONE -> emptyList() SyncManager.SyncService.SYNCYOMI -> getSelfHostPreferences(syncPreferences) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncDataJob.kt b/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncDataJob.kt index 40abcc802..de4f33fc5 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncDataJob.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncDataJob.kt @@ -18,7 +18,6 @@ import tachiyomi.domain.sync.SyncPreferences import uy.kohesive.injekt.Injekt import uy.kohesive.injekt.api.get import java.util.concurrent.TimeUnit -import kotlin.random.Random class SyncDataJob(private val context: Context, workerParams: WorkerParameters) : CoroutineWorker(context, workerParams) { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/track/GoogleDriveLoginActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/track/GoogleDriveLoginActivity.kt index 370f70276..6ddc71463 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/track/GoogleDriveLoginActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/track/GoogleDriveLoginActivity.kt @@ -6,9 +6,9 @@ import androidx.lifecycle.lifecycleScope import eu.kanade.tachiyomi.data.sync.service.GoogleDriveService import tachiyomi.core.i18n.stringResource import tachiyomi.core.util.lang.launchIO +import tachiyomi.i18n.MR import uy.kohesive.injekt.Injekt import uy.kohesive.injekt.api.get -import tachiyomi.i18n.MR class GoogleDriveLoginActivity : BaseOAuthLoginActivity() { private val googleDriveService = Injekt.get()