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:
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
|
||||
// index during playback.
|
||||
isForeground = true
|
||||
} else {
|
||||
musicFragment.createNotification {
|
||||
if (it != null) {
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue