@@ -50,7 +50,7 @@ internal fun ChapterScreen(
50
50
51
51
LaunchedEffect (key1 = allPages) {
52
52
val preloadPages = 2
53
- com.melonhead.lib_logging. Clog .i(" First page - Preloading pages 1 - ${1 + preloadPages} " )
53
+ Clog .i(" First page - Preloading pages 1 - ${1 + preloadPages} " )
54
54
allPages.slice(min(1 , allPages.count() - 1 ).. min((1 + preloadPages), allPages.count() - 1 )).forEach { page ->
55
55
preloadImage(page, allPages.indexOf(page))
56
56
}
@@ -67,7 +67,7 @@ internal fun ChapterScreen(
67
67
val nextPreloadIndex = currentPageIndex + 2
68
68
val start = min(nextPreloadIndex, totalPages - 1 )
69
69
val end = min(totalPages - 1 , nextPreloadIndex + 1 )
70
- com.melonhead.lib_logging. Clog .i(" Next page - Current Page $currentPageIndex , moving to ${currentPageIndex + 1 } Preloading pages $start - $end " )
70
+ Clog .i(" Next page - Current Page $currentPageIndex , moving to ${currentPageIndex + 1 } Preloading pages $start - $end " )
71
71
allPages.slice(start.. end).forEach {
72
72
preloadImage(it, allPages.indexOf(it))
73
73
}
@@ -157,7 +157,7 @@ private fun ChapterView(
157
157
val (width, height) = getWidthHeight()
158
158
SubcomposeAsyncImage (
159
159
model = currentPageUrl.preloadImageRequest(pageIndex = currentPageIndex, LocalContext .current, width, height, retryHash) {
160
- com.melonhead.lib_logging. Clog .i(" Retrying due to load failure" )
160
+ Clog .i(" Retrying due to load failure" )
161
161
retryHash = ! retryHash
162
162
},
163
163
loading = {
@@ -193,17 +193,17 @@ private fun String.preloadImageRequest(pageIndex: Int, context: Context, width:
193
193
.crossfade(true )
194
194
.listener(
195
195
onStart = {
196
- com.melonhead.lib_logging. Clog .i(" Image Load start: page $pageIndex " )
196
+ Clog .i(" Image Load start: page $pageIndex " )
197
197
},
198
198
onCancel = {
199
- com.melonhead.lib_logging. Clog .i(" Image Load cancel: page $pageIndex " )
199
+ Clog .i(" Image Load cancel: page $pageIndex " )
200
200
},
201
201
onSuccess = { _, result ->
202
- com.melonhead.lib_logging. Clog .i(" Image Load success: Source ${result.dataSource.name} , page $pageIndex " )
202
+ Clog .i(" Image Load success: Source ${result.dataSource.name} , page $pageIndex " )
203
203
},
204
204
onError = { _, result ->
205
- com.melonhead.lib_logging. Clog .i(" Image Load failed: page $pageIndex " )
206
- com.melonhead.lib_logging. Clog .e(" Image Load failed" , result.throwable)
205
+ Clog .i(" Image Load failed: page $pageIndex " )
206
+ Clog .e(" Image Load failed" , result.throwable)
207
207
onError()
208
208
}
209
209
)
0 commit comments