mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-21 12:17:12 +03:00
lint cleanup
This commit is contained in:
parent
c6f81b7fda
commit
a60268e61c
14 changed files with 7 additions and 22 deletions
|
@ -11,11 +11,11 @@ import androidx.compose.foundation.pager.PagerState
|
|||
import androidx.compose.foundation.pager.rememberPagerState
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.ScrollableTabRow
|
||||
import androidx.compose.material3.TabRow
|
||||
import androidx.compose.material3.SnackbarHost
|
||||
import androidx.compose.material3.SnackbarHostState
|
||||
import androidx.compose.material3.Tab
|
||||
import androidx.compose.material3.TabPosition
|
||||
import androidx.compose.material3.TabRow
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.remember
|
||||
|
|
|
@ -18,7 +18,6 @@ import androidx.compose.material.icons.outlined.Info
|
|||
import androidx.compose.material.icons.outlined.Label
|
||||
import androidx.compose.material.icons.outlined.QueryStats
|
||||
import androidx.compose.material.icons.outlined.Settings
|
||||
import androidx.compose.material.icons.outlined.SettingsBackupRestore
|
||||
import androidx.compose.material.icons.outlined.Storage
|
||||
import androidx.compose.material3.HorizontalDivider
|
||||
import androidx.compose.runtime.Composable
|
||||
|
|
|
@ -14,7 +14,6 @@ import androidx.compose.material3.TextButton
|
|||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.ReadOnlyComposable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableIntStateOf
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.rememberCoroutineScope
|
||||
|
@ -34,8 +33,6 @@ import eu.kanade.presentation.more.settings.screen.advanced.ClearAnimeDatabaseSc
|
|||
import eu.kanade.presentation.more.settings.screen.advanced.ClearDatabaseScreen
|
||||
import eu.kanade.presentation.more.settings.screen.debug.DebugInfoScreen
|
||||
import eu.kanade.tachiyomi.R
|
||||
import eu.kanade.tachiyomi.data.cache.ChapterCache
|
||||
import eu.kanade.tachiyomi.data.cache.EpisodeCache
|
||||
import eu.kanade.tachiyomi.data.download.anime.AnimeDownloadCache
|
||||
import eu.kanade.tachiyomi.data.download.manga.MangaDownloadCache
|
||||
import eu.kanade.tachiyomi.data.library.anime.AnimeLibraryUpdateJob
|
||||
|
@ -69,7 +66,6 @@ import tachiyomi.core.util.lang.launchNonCancellable
|
|||
import tachiyomi.core.util.lang.withUIContext
|
||||
import tachiyomi.core.util.system.logcat
|
||||
import tachiyomi.domain.entries.manga.repository.MangaRepository
|
||||
import tachiyomi.domain.library.service.LibraryPreferences
|
||||
import tachiyomi.presentation.core.util.collectAsState
|
||||
import uy.kohesive.injekt.Injekt
|
||||
import uy.kohesive.injekt.api.get
|
||||
|
|
|
@ -402,7 +402,7 @@ object SettingsDataScreen : SearchableSettings {
|
|||
val backupInterval by backupIntervalPref.collectAsState()
|
||||
|
||||
val chapterCache = remember { Injekt.get<ChapterCache>() }
|
||||
val episodeCache = remember { Injekt.get<EpisodeCache>()}
|
||||
val episodeCache = remember { Injekt.get<EpisodeCache>() }
|
||||
var readableSizeSema by remember { mutableIntStateOf(0) }
|
||||
val readableSize = remember(readableSizeSema) { chapterCache.readableSize }
|
||||
val readableAnimeSize = remember(readableSizeSema) { episodeCache.readableSize }
|
||||
|
|
|
@ -19,7 +19,6 @@ import androidx.compose.material.icons.outlined.Palette
|
|||
import androidx.compose.material.icons.outlined.PlayCircleOutline
|
||||
import androidx.compose.material.icons.outlined.Search
|
||||
import androidx.compose.material.icons.outlined.Security
|
||||
import androidx.compose.material.icons.outlined.SettingsBackupRestore
|
||||
import androidx.compose.material.icons.outlined.Storage
|
||||
import androidx.compose.material.icons.outlined.Sync
|
||||
import androidx.compose.material3.LocalContentColor
|
||||
|
|
|
@ -5,7 +5,6 @@ import androidx.compose.runtime.Composable
|
|||
import androidx.compose.runtime.LaunchedEffect
|
||||
import com.google.accompanist.permissions.rememberPermissionState
|
||||
|
||||
|
||||
/**
|
||||
* Launches request for [Manifest.permission.WRITE_EXTERNAL_STORAGE] permission
|
||||
*/
|
||||
|
|
|
@ -73,7 +73,6 @@ private fun DialogContent(
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
@ThemePreviews
|
||||
@Composable
|
||||
private fun DialogContentPreview() {
|
||||
|
|
|
@ -9,11 +9,8 @@ import androidx.compose.foundation.isSystemInDarkTheme
|
|||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.WindowInsets
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.systemBars
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.layout.windowInsetsPadding
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.outlined.Bookmark
|
||||
import androidx.compose.material.icons.outlined.BookmarkBorder
|
||||
|
|
|
@ -6,7 +6,6 @@ import eu.kanade.tachiyomi.R
|
|||
import eu.kanade.tachiyomi.data.track.Tracker
|
||||
import eu.kanade.tachiyomi.dev.preview.DummyTracker
|
||||
|
||||
|
||||
internal class TrackLogoIconPreviewProvider : PreviewParameterProvider<Tracker> {
|
||||
|
||||
override val values: Sequence<Tracker>
|
||||
|
|
|
@ -6,7 +6,6 @@ import eu.kanade.tachiyomi.data.track.Tracker
|
|||
import eu.kanade.tachiyomi.data.track.model.AnimeTrackSearch
|
||||
import eu.kanade.tachiyomi.data.track.model.MangaTrackSearch
|
||||
import okhttp3.OkHttpClient
|
||||
import tachiyomi.domain.track.manga.model.MangaTrack
|
||||
|
||||
data class DummyTracker(
|
||||
override val id: Long,
|
||||
|
|
|
@ -92,7 +92,6 @@ import tachiyomi.presentation.core.util.collectAsState
|
|||
import tachiyomi.presentation.widget.util.stringResource
|
||||
import uy.kohesive.injekt.Injekt
|
||||
import uy.kohesive.injekt.api.get
|
||||
import kotlin.math.abs
|
||||
|
||||
class ReaderActivity : BaseActivity() {
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ package eu.kanade.tachiyomi.util
|
|||
|
||||
import android.content.Context
|
||||
import android.os.Build
|
||||
import eu.kanade.tachiyomi.BuildConfig
|
||||
import eu.kanade.tachiyomi.extension.anime.AnimeExtensionManager
|
||||
import eu.kanade.tachiyomi.extension.manga.MangaExtensionManager
|
||||
import eu.kanade.tachiyomi.util.storage.getUriCompat
|
||||
|
|
|
@ -115,7 +115,7 @@ class AnimeCategoryRepositoryImpl(
|
|||
name = name,
|
||||
order = order,
|
||||
flags = flags,
|
||||
hidden = hidden == 1L
|
||||
hidden = hidden == 1L,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,17 +131,17 @@ class EpisodeRepositoryImpl(
|
|||
lastModifiedAt: Long,
|
||||
): Episode = Episode(
|
||||
id = id,
|
||||
animeId = animeId ,
|
||||
seen = seen ,
|
||||
animeId = animeId,
|
||||
seen = seen,
|
||||
bookmark = bookmark,
|
||||
lastSecondSeen = lastSecondSeen ,
|
||||
lastSecondSeen = lastSecondSeen,
|
||||
totalSeconds = totalSeconds,
|
||||
dateFetch = dateFetch,
|
||||
sourceOrder = sourceOrder,
|
||||
url = url,
|
||||
name = name,
|
||||
dateUpload = dateUpload,
|
||||
episodeNumber = episodeNumber,
|
||||
episodeNumber = episodeNumber,
|
||||
scanlator = scanlator,
|
||||
lastModifiedAt = lastModifiedAt,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue