[Manatoki] Bug fix
This commit is contained in:
2
.idea/deploymentTargetDropDown.xml
generated
2
.idea/deploymentTargetDropDown.xml
generated
@@ -12,6 +12,6 @@
|
||||
</deviceKey>
|
||||
</Target>
|
||||
</targetSelectedWithDropDown>
|
||||
<timeTargetWasSelectedWithDropDown value="2021-12-21T07:51:21.968371Z" />
|
||||
<timeTargetWasSelectedWithDropDown value="2021-12-21T09:29:02.245596Z" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -77,12 +77,12 @@ fun OverscrollPager(
|
||||
if (topCircleRadius != 0f || bottomCircleRadius != 0f)
|
||||
Canvas(modifier = Modifier.fillMaxSize()) {
|
||||
drawCircle(
|
||||
LightBlue300.copy(alpha = 0.6f),
|
||||
LightBlue300,
|
||||
center = Offset(this.center.x, prevPageTurnIndicatorOffsetPx),
|
||||
radius = topCircleRadius
|
||||
)
|
||||
drawCircle(
|
||||
LightBlue300.copy(alpha = 0.6f),
|
||||
LightBlue300,
|
||||
center = Offset(this.center.x, this.size.height-pageTurnIndicatorHeight-nextPageTurnIndicatorOffsetPx),
|
||||
radius = bottomCircleRadius
|
||||
)
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
package xyz.quaver.pupil.sources.manatoki
|
||||
|
||||
import android.app.Application
|
||||
import android.util.Half
|
||||
import android.util.LruCache
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.compose.animation.AnimatedVisibility
|
||||
@@ -812,6 +813,9 @@ class Manatoki(app: Application) : Source(), DIAware {
|
||||
currentPage = model.page,
|
||||
prevPageAvailable = model.page > 1,
|
||||
nextPageAvailable = model.page < model.maxPage,
|
||||
nextPageTurnIndicatorOffset = rememberInsetsPaddingValues(
|
||||
LocalWindowInsets.current.navigationBars
|
||||
).calculateBottomPadding(),
|
||||
onPageTurn = {
|
||||
model.page = it
|
||||
coroutineScope.launch {
|
||||
|
||||
@@ -110,14 +110,6 @@ fun MangaListingBottomSheet(
|
||||
) {
|
||||
val coroutineScope = rememberCoroutineScope()
|
||||
|
||||
rippleInteractionSource.forEach {
|
||||
coroutineScope.launch {
|
||||
it.interactions.collect {
|
||||
Log.d("PUPILD", it.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Box(
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user