Skip to content

Commit

Permalink
Run Cleanup Code
Browse files Browse the repository at this point in the history
  • Loading branch information
Caio99BR committed Jul 2, 2024
1 parent 2e3132d commit be801f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class BangumiApi(
}
}

suspend fun findLibManga(track: Track): Track? {
suspend fun findLibManga(track: Track): Track {
return withIOContext {
with(json) {
authClient.newCall(GET("$API_URL/subject/${track.remote_id}"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class PagerViewerAdapter(private val viewer: PagerViewer) : ViewPagerAdapter() {
}

fun cleanupPageSplit() {
val insertPages = items.filterIsInstance(InsertPage::class.java)
val insertPages = items.filterIsInstance<InsertPage>()
items.removeAll(insertPages)
notifyDataSetChanged()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import androidx.compose.animation.togetherWith
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.KeyboardArrowLeft
import androidx.compose.material.icons.filled.KeyboardArrowRight
import androidx.compose.material.icons.automirrored.filled.KeyboardArrowLeft
import androidx.compose.material.icons.automirrored.filled.KeyboardArrowRight
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
Expand Down Expand Up @@ -54,10 +54,10 @@ fun CalenderHeader(
}
Row {
IconButton(onClick = onPreviousClick) {
Icon(Icons.Default.KeyboardArrowLeft, stringResource(MR.strings.upcoming_calendar_prev))
Icon(Icons.AutoMirrored.Filled.KeyboardArrowLeft, stringResource(MR.strings.upcoming_calendar_prev))
}
IconButton(onClick = onNextClick) {
Icon(Icons.Default.KeyboardArrowRight, stringResource(MR.strings.upcoming_calendar_next))
Icon(Icons.AutoMirrored.Filled.KeyboardArrowRight, stringResource(MR.strings.upcoming_calendar_next))
}
}
}
Expand Down

0 comments on commit be801f7

Please sign in to comment.