mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-24 04:45:32 -04:00
universal7885: FMRadio: Use correct function signature
Timer.schedule(TimerTask t, Long l1, Long l2) is running t with startdelay l1 and delaying l2 every execution Timer.schedule(TimerTask t, Long l) is executing t after delay l and stops We need to poll the HAL for mutex free, hence fix to first one
This commit is contained in:
parent
666b99ecec
commit
1ed534a894
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ import java.util.Timer
|
||||||
import java.util.TimerTask
|
import java.util.TimerTask
|
||||||
|
|
||||||
object WaitUntil {
|
object WaitUntil {
|
||||||
fun setTimer(act: Activity, todo: IWaitUntil, timeout: Long = 15000) {
|
fun setTimer(act: Activity, todo: IWaitUntil, initdelay: Long = 5000, delay: Long = 500) {
|
||||||
Timer().schedule(
|
Timer().schedule(
|
||||||
object : TimerTask() {
|
object : TimerTask() {
|
||||||
override fun run() {
|
override fun run() {
|
||||||
|
|
@ -18,7 +18,7 @@ object WaitUntil {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
timeout
|
initdelay, delay
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue