style: run ktlint

This commit is contained in:
FineFindus 2023-11-15 19:04:04 +01:00
parent 27c175648b
commit 20e30b5bb0
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B
4 changed files with 15 additions and 10 deletions

View File

@ -77,7 +77,10 @@ object DatabaseHelper {
}
}
suspend fun filterByWatchStatus(streams: List<WatchHistoryItem>, unfinished: Boolean = true): List<WatchHistoryItem> {
suspend fun filterByWatchStatus(
streams: List<WatchHistoryItem>,
unfinished: Boolean = true
): List<WatchHistoryItem> {
return streams.filter {
withContext(Dispatchers.IO) {
val historyItem = Database.watchPositionDao()

View File

@ -73,7 +73,9 @@ class CommentsAdapter(
val comment = comments[position]
holder.binding.apply {
commentAuthor.text = comment.author
commentAuthor.setBackgroundResource(if (comment.channelOwner) R.drawable.comment_channel_owner_bg else 0)
commentAuthor.setBackgroundResource(
if (comment.channelOwner) R.drawable.comment_channel_owner_bg else 0
)
commentInfos.text = TextUtils.SEPARATOR + comment.commentedTime
commentText.movementMethod = LinkMovementMethodCompat.getInstance()

View File

@ -37,7 +37,6 @@ import androidx.fragment.app.commit
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.media3.common.C
import androidx.media3.common.C.WakeMode
import androidx.media3.common.MediaItem
import androidx.media3.common.MediaItem.SubtitleConfiguration
import androidx.media3.common.MimeTypes

View File

@ -145,7 +145,8 @@ object PlayingQueue {
}
}
private fun fetchMoreFromPlaylist(playlistId: String, nextPage: String?, isMainList: Boolean) = runCatchingIO {
private fun fetchMoreFromPlaylist(playlistId: String, nextPage: String?, isMainList: Boolean) =
runCatchingIO {
var playlistNextPage = nextPage
while (playlistNextPage != null) {
RetrofitInstance.authApi.getPlaylistNextPage(playlistId, playlistNextPage).run {