2 Commits
Author SHA1 Message Date
OneWay c2b2bf1c8a chore(deps): bump Compose BOM to 2026.09.00
Measure-pass defect in compose ui 1.12.0: layoutChildrenBlock clobbered
the isPlacingForAlignment flag of child nodes during alignment
placement, so sheet anchors were recalculated from a stale content size.

compose ui 1.12.1 preserves and restores child placement flags, so the
anchor is computed from a consistent content size on the first frame.
2026-09-19 15:20:16 +08:00
OneWay 30aa86f39f fix(search): drop the open article when the query is cleared 2026-09-19 15:20:16 +08:00
2 changed files with 5 additions and 1 deletions

No files matched your search

@@ -122,6 +122,7 @@ class SearchViewModel(
SearchAction.ClearQuery -> {
mutableSearchQuery.value = ""
savedStateHandle[KEY_SEARCH_QUERY] = ""
clearArticle()
}
is SearchAction.ArticleClicked -> {
articleHistory.clear()
@@ -136,6 +137,9 @@ class SearchViewModel(
fun onSearchQueryChanged(query: String) {
val sanitized = query.sanitizeQuery().trim()
mutableSearchQuery.value = sanitized
if (sanitized.isBlank()) {
clearArticle()
}
// Debounce SavedStateHandle writes to reduce disk I/O
debounceSaveQueryJob?.cancel()
debounceSaveQueryJob = viewModelScope.launch {
+1 -1
View File
@@ -2,7 +2,7 @@
aboutlibraries = "15.2.0"
activity_compose = "1.13.0"
agp = "9.3.1"
compose_bom = "2026.08.00"
compose_bom = "2026.09.00"
core = "1.19.0"
datastore_preferences = "1.2.1"
documentfile = "1.1.0"