Skip to content

Commit acf2a61

Browse files
committed
#1955 fix: step forward and step backward media actions support more apps.
1 parent ee08787 commit acf2a61

File tree

7 files changed

+246
-158
lines changed

7 files changed

+246
-158
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Bug fixes
66

7-
- #1955 media actions support more apps.
7+
- #1955 step forward and step backward media actions support more apps.
88
- #1940 improve reliability of clicking pairing code button in Wireless Debugging settings.
99

1010
## [4.0.0 Beta 4](https://github.com/sds100/KeyMapper/releases/tag/v4.0.0-beta.04)

base/src/main/java/io/github/sds100/keymapper/base/actions/ChooseActionViewModel.kt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ class ChooseActionViewModel @Inject constructor(
152152
error == SystemError.PermissionDenied(
153153
Permission.ROOT,
154154
) -> getString(R.string.choose_action_warning_requires_root)
155+
155156
error != null -> error.getFullMessage(this@ChooseActionViewModel)
157+
156158
else -> null
157159
}
158160

@@ -200,13 +202,6 @@ class ChooseActionViewModel @Inject constructor(
200202

201203
val messageToShow: Int? = when (id) {
202204
ActionId.FAST_FORWARD_PACKAGE,
203-
ActionId.FAST_FORWARD,
204-
-> R.string.action_fast_forward_message
205-
206-
ActionId.REWIND_PACKAGE,
207-
ActionId.REWIND,
208-
-> R.string.action_rewind_message
209-
210205
ActionId.TOGGLE_KEYBOARD,
211206
ActionId.SHOW_KEYBOARD,
212207
ActionId.HIDE_KEYBOARD,

0 commit comments

Comments
 (0)