Fix gallery detail losing scroll position
This commit is contained in:
1 parent
aab7ba0d53
commit
68932731b9
1 file changed
+1
-1
@@ -214,7 +214,7 @@ private fun List<GalleryTagGroup>.getArtistTag(): String? {
|
||||
@Destination<RootGraph>
|
||||
@Composable
|
||||
fun AnimatedVisibilityScope.GalleryDetailScreen(args: GalleryDetailScreenArgs, navigator: DestinationsNavigator) = composing(navigator) {
|
||||
var galleryInfo by remember {
|
||||
var galleryInfo by rememberInVM {
|
||||
val casted = args as? GalleryInfoArgs
|
||||
mutableStateOf<GalleryInfo?>(casted?.galleryInfo)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user