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:45:32 -06:00
parent 6b6fc4d62a
commit b630063f8c
2 changed files with 4 additions and 0 deletions
@@ -142,6 +142,7 @@ class AuxioService :
} }
// Nothing changed, but don't show anything music related since we can always // Nothing changed, but don't show anything music related since we can always
// index during playback. // index during playback.
isForeground = true
} else { } else {
musicFragment.createNotification { musicFragment.createNotification {
if (it != null) { if (it != null) {
@@ -66,6 +66,9 @@ class StartActionRunner : TaskerPluginRunnerActionNoOutputOrInput() {
while (!AuxioService.isForeground) { while (!AuxioService.isForeground) {
Thread.sleep(100) 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() return TaskerPluginResultSucess()
} }
} }