fix(settings): let back leave a settings sub-screen, not all of Settings (#81)

The settings sub-screens are overlays over the hub, so each has to take the back
gesture itself; the hub's handler pops the whole Settings destination. Views and
Special dates never passed predictiveBack, so back there fell through to the hub
and dropped you on the calendar. Appearance, Event form and Notifications
already did the right thing.
This commit is contained in:
2026-07-30 15:23:24 +02:00
parent 6a2f490b1a
commit b4c4127bff

View File

@@ -862,6 +862,7 @@ private fun ViewsScreen(
CollapsingScaffold( CollapsingScaffold(
title = stringResource(R.string.settings_section_views), title = stringResource(R.string.settings_section_views),
onBack = onBack, onBack = onBack,
predictiveBack = true,
) { ) {
val config = state.quickSwitchConfig val config = state.quickSwitchConfig
@@ -1403,6 +1404,7 @@ private fun SpecialDatesScreen(
CollapsingScaffold( CollapsingScaffold(
title = stringResource(R.string.settings_section_special_dates), title = stringResource(R.string.settings_section_special_dates),
onBack = onBack, onBack = onBack,
predictiveBack = true,
) { ) {
// Paused banner: the permission was revoked after enabling. // Paused banner: the permission was revoked after enabling.
if (state.enabled && state.stalledPermission) { if (state.enabled && state.stalledPermission) {