Skip to content

Commit

Permalink
fix: add enter transition for playlist tab row.
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyroid committed May 18, 2024
1 parent ac7777d commit 0e34e61
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ package com.m3u.features.playlist.internal
import android.content.res.Configuration.ORIENTATION_LANDSCAPE
import android.content.res.Configuration.ORIENTATION_PORTRAIT
import androidx.activity.compose.BackHandler
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
Expand Down Expand Up @@ -250,12 +253,18 @@ internal fun SmartphonePlaylistScreenImpl(
Modifier.background(MaterialTheme.colorScheme.surfaceContainerHighest)
) {
if (!isExpanded) {
if (categories.size > 1) {
AnimatedVisibility(
visible = categories.size > 1,
enter = fadeIn(animationSpec = tween(400))
) {
tabs()
}
gallery()
} else {
if (categories.size > 1) {
AnimatedVisibility(
visible = categories.size > 1,
enter = fadeIn(animationSpec = tween(400))
) {
tabs()
}
}
Expand Down

0 comments on commit 0e34e61

Please sign in to comment.