tasker: hack around new tasker issues

No idea why, but I guess I need to now wait an arbitrary amount of time
until I can actually let media button inputs in now.
This commit is contained in:
Alexander Capehart 2025-03-17 16:42:11 -06:00
parent 6b6fc4d62a
commit b630063f8c
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
2 changed files with 4 additions and 0 deletions

View file

@ -142,6 +142,7 @@ class AuxioService :
}
// Nothing changed, but don't show anything music related since we can always
// index during playback.
isForeground = true
} else {
musicFragment.createNotification {
if (it != null) {

View file

@ -66,6 +66,9 @@ class StartActionRunner : TaskerPluginRunnerActionNoOutputOrInput() {
while (!AuxioService.isForeground) {
Thread.sleep(100)
}
// Actually need to sleep even longer since for some reason the notification still
// won't accept media button events for an arbitrary period.
Thread.sleep(100)
return TaskerPluginResultSucess()
}
}