Skip to content

Commit

Permalink
fix: Avoid blink of the empty state when we back from a transfer on p…
Browse files Browse the repository at this point in the history
…hones (#432)
  • Loading branch information
tevincent authored Feb 27, 2025
2 parents 153b5c2 + ee343d5 commit fe8aaed
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ private fun DetailPane(
navigator: ThreePaneScaffoldNavigator<DestinationContent>,
hasTransfer: () -> Boolean,
) {
when (val destinationContent = navigator.currentDestination?.content) {
val isWindowLarge = LocalWindowAdaptiveInfo.current.isWindowLarge()
val destinationContent = if (isWindowLarge) navigator.currentDestination?.content else navigator.safeCurrentContent()

when (destinationContent) {
null -> {
NoSelectionEmptyState(hasTransfer())
}
Expand Down

0 comments on commit fe8aaed

Please sign in to comment.