Skip to content

Commit

Permalink
Remove extra logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jocmp committed Feb 14, 2025
1 parent 2f9851e commit 2d06597
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data class ArticlePagination(
val onSelectArticle: (index: Int, id: String) -> Unit,
) {
val hasPrevious = pages.previous > -1
val hasNext = pages.next > -1
val hasNext = pages.next < pages.size
val index = pages.current

fun selectPrevious() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import com.capyreader.app.ui.settings.panels.ArticleVerticalSwipe.NEXT_ARTICLE
import com.capyreader.app.ui.settings.panels.ArticleVerticalSwipe.OPEN_ARTICLE_IN_BROWSER
import com.capyreader.app.ui.settings.panels.ArticleVerticalSwipe.PREVIOUS_ARTICLE
import com.jocmp.capy.Article
import com.jocmp.capy.logging.CapyLog
import org.koin.compose.koinInject

@OptIn(ExperimentalMaterial3Api::class)
Expand Down Expand Up @@ -125,14 +124,6 @@ fun ArticleView(
)

LaunchedEffect(pagination.index) {
CapyLog.info(
"launched",
mapOf(
"article_id" to article.id,
"size" to pagination.pages.size.toString(),
"article_idx" to pagination.index.toString(),
),
)
if (pagination.index > -1) {
onScrollToArticle(pagination.index)
}
Expand Down

0 comments on commit 2d06597

Please sign in to comment.