Skip to content

Commit 4a697b6

Browse files
committed
#1657 feat: turn on repeat by default for volume actions
1 parent 3a09324 commit 4a697b6

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44

55
## Added
66

7-
- #1652 Bring back the menu button to show input method picker
7+
- #1652 Bring back the menu button to show input method picker.
8+
- #1657 Turn on repeat by default for volume actions.
89

910
## Changed
1011

1112
- #1654 The Key Mapper keyboard is now required again for Text actions because the accessibility service API does not work in all situations.
12-
- #1653 Hide the export/import menu buttons in groups
13+
- #1653 Hide the export/import menu buttons in groups.
1314

1415
## Bug fixes
1516

1617
- Inputting key events with Shizuku does not crash the app if a Key Mapper keyboard is being used at the same time. And latency when inputting key events has been improved in some apps.
17-
- #1646 disabling Bluetooth clears the list of connected devices
18-
- #1655 do not crash when restoring key map groups
18+
- #1646 disabling Bluetooth clears the list of connected devices.
19+
- #1655 do not crash when restoring key map groups.
1920

2021
## [3.0.0](https://github.com/sds100/KeyMapper/releases/tag/v3.0.0)
2122

app/src/main/java/io/github/sds100/keymapper/mappings/keymaps/ConfigKeyMapUseCase.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ import kotlinx.coroutines.flow.stateIn
5252
import kotlinx.coroutines.flow.update
5353
import kotlinx.coroutines.launch
5454
import kotlinx.coroutines.withContext
55-
import kotlinx.serialization.encodeToString
5655
import kotlinx.serialization.json.Json
5756
import java.util.LinkedList
5857

@@ -802,6 +801,10 @@ class ConfigKeyMapUseCaseController(
802801
}
803802
}
804803

804+
if (data is ActionData.Volume.Down || data is ActionData.Volume.Up || data is ActionData.Volume.Stream) {
805+
repeat = true
806+
}
807+
805808
if (data is ActionData.AnswerCall) {
806809
addConstraint(Constraint.PhoneRinging())
807810
}

0 commit comments

Comments
 (0)