Skip to content

Commit

Permalink
fix: Remove predictive back when leaving dish detail
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastaapps committed Feb 7, 2025
1 parent 53ffec0 commit d511aec
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ import cz.lastaapps.menza.features.today.ui.vm.TodayState
import cz.lastaapps.menza.features.today.ui.vm.TodayViewModel
import cz.lastaapps.menza.features.today.ui.widget.NoDishSelected
import cz.lastaapps.menza.ui.theme.Padding
import cz.lastaapps.menza.ui.theme.fadingPredictiveBackParams
import cz.lastaapps.menza.ui.util.AnimatedAppearance
import cz.lastaapps.menza.ui.util.AnimationScopes
import cz.lastaapps.menza.ui.util.ChildPanelsModeFoldingEffect
Expand Down Expand Up @@ -258,12 +257,15 @@ internal fun TodayContent(
single = fade() + scale(),
dual = fade() to fade(),
),
predictiveBackParams = {
fadingPredictiveBackParams(
backHandler = component.backHandler,
onBack = component::onBackClicked,
)
},
// This caused problems on some Oppo devices and generally did not look any good
// as the fading is ignored by items in overlay,
// or so I think, the alpha transition just did not work properly
// predictiveBackParams = {
// fadingPredictiveBackParams(
// backHandler = component.backHandler,
// onBack = component::onBackClicked,
// )
// },
)
}
}
Expand Down

0 comments on commit d511aec

Please sign in to comment.