HapeLee 4 месяцев назад
Родитель
Сommit
bd81f3cd36

+ 1 - 1
app/src/main/java/io/legado/app/ui/main/homepage/modules/CardModule.kt

@@ -79,7 +79,7 @@ fun CardModule(
                         with(sharedTransitionScope) {
                         with(sharedTransitionScope) {
                             if (this != null) {
                             if (this != null) {
                                 Modifier.sharedBounds(
                                 Modifier.sharedBounds(
-                                    sharedContentState = rememberSharedContentState("preview:${book.bookUrl}"),
+                                    sharedContentState = rememberSharedContentState("preview:$sharedCoverKey"),
                                     animatedVisibilityScope = animatedVisibilityScope
                                     animatedVisibilityScope = animatedVisibilityScope
                                         ?: return@with Modifier,
                                         ?: return@with Modifier,
                                 )
                                 )

+ 1 - 1
app/src/main/java/io/legado/app/ui/main/homepage/modules/GridRankingModule.kt

@@ -130,7 +130,7 @@ private fun GridRankingItem(
                 with(sharedTransitionScope) {
                 with(sharedTransitionScope) {
                     if (this != null) {
                     if (this != null) {
                         Modifier.sharedBounds(
                         Modifier.sharedBounds(
-                            sharedContentState = rememberSharedContentState("preview:${book.bookUrl}"),
+                            sharedContentState = rememberSharedContentState("preview:$sharedCoverKey"),
                             animatedVisibilityScope = animatedVisibilityScope
                             animatedVisibilityScope = animatedVisibilityScope
                                 ?: return@with Modifier,
                                 ?: return@with Modifier,
                         )
                         )

+ 1 - 1
app/src/main/java/io/legado/app/ui/main/homepage/modules/RankingModule.kt

@@ -143,7 +143,7 @@ private fun RankingItem(
                 with(sharedTransitionScope) {
                 with(sharedTransitionScope) {
                     if (this != null) {
                     if (this != null) {
                         Modifier.sharedBounds(
                         Modifier.sharedBounds(
-                            sharedContentState = rememberSharedContentState("preview:${book.bookUrl}"),
+                            sharedContentState = rememberSharedContentState("preview:$sharedCoverKey"),
                             animatedVisibilityScope = animatedVisibilityScope
                             animatedVisibilityScope = animatedVisibilityScope
                                 ?: return@with Modifier,
                                 ?: return@with Modifier,
                         )
                         )

+ 1 - 1
app/src/main/java/io/legado/app/ui/main/homepage/modules/WaterfallModule.kt

@@ -52,7 +52,7 @@ fun WaterfallItem(
         modifier = with(sharedTransitionScope) {
         modifier = with(sharedTransitionScope) {
             if (this != null) {
             if (this != null) {
                 Modifier.sharedBounds(
                 Modifier.sharedBounds(
-                    sharedContentState = rememberSharedContentState("preview:${book.bookUrl}"),
+                    sharedContentState = rememberSharedContentState("preview:$sharedCoverKey"),
                     animatedVisibilityScope = animatedVisibilityScope ?: return@with Modifier,
                     animatedVisibilityScope = animatedVisibilityScope ?: return@with Modifier,
                 )
                 )
             } else Modifier
             } else Modifier