Skip to content

Commit 6a62010

Browse files
committed
module: generalize abortAll to handle all MediaEvent entries
1 parent cca380f commit 6a62010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/ru/hepolise/volumekeytrackcontrol/module/VolumeKeyControlModuleHandlers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ object VolumeKeyControlModuleHandlers {
245245

246246
private fun MethodHookParam.abortAll() {
247247
log("Aborting all")
248-
abortEvents(MediaEvent.Prev, MediaEvent.Next, MediaEvent.PlayPause)
248+
abortEvents(*MediaEvent.entries.toTypedArray())
249249
}
250250

251251
private fun MethodHookParam.abortEvents(vararg events: MediaEvent) {

0 commit comments

Comments
 (0)