Skip to content

Commit 5a43064

Browse files
authored
feat: preserve search query on tab change (#394)
* feat: preserve search query on tab change * docs: update changelog
1 parent 2a2f356 commit 5a43064

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [Unreleased]
88

99
### Changed
10-
1110
- Compatibility updates for Android 15 & 16
11+
- Search query is now preserved when switching tabs
1212

1313
## [1.3.0] - 2025-10-09
1414
### Added

app/src/main/kotlin/org/fossify/contacts/activities/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
417417
updateBottomTabItemColors(it.customView, false, getDeselectedTabDrawableIds()[it.position])
418418
},
419419
tabSelectedAction = {
420-
binding.mainMenu.closeSearch()
420+
getCurrentFragment()?.onSearchQueryChanged(binding.mainMenu.getCurrentQuery())
421421
binding.viewPager.currentItem = it.position
422422
updateBottomTabItemColors(it.customView, true, getSelectedTabDrawableIds()[it.position])
423423
}

0 commit comments

Comments
 (0)