Skip to content

Commit

Permalink
v2.1 ready
Browse files Browse the repository at this point in the history
  • Loading branch information
aj3423 committed Sep 22, 2024
1 parent 86cc421 commit 1026de5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ android {
applicationId = "spam.blocker"
minSdk = 29
targetSdk = 35
versionCode = 200
versionName = "2.0"
versionCode = 201
versionName = "2.1"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,17 @@ fun RuleSearchBox(
vm.filter = it
vm.reload(ctx)
},
// Auto focus, and force scroll to input box.
modifier = M
// Auto focus, and force scroll to input box.
.focusRequester(focusRequester)
.onGloballyPositioned {
if (!textFieldLoaded) {
focusRequester.requestFocus() // IMPORTANT
textFieldLoaded = true // stop cyclic recompositions
}
}

// Hide itself when lose focus, the unfocused event is triggered in SettingScreen
.onFocusEvent { focusState ->
if (textFieldLoaded && !focusState.isFocused) {
vm.searchEnabled.value = false
Expand Down
5 changes: 5 additions & 0 deletions metadata/en-US/changelogs/201.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
New:
- Option to disable history logging, or auto expire
- Rule schedule now supports two-day time spans, like 21:00-05:00
- "Search Rule" context menu item
- Language support: Galician (gal)

0 comments on commit 1026de5

Please sign in to comment.