mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #2931 from NathanaelA/worker-timer-fix-android
Fixes using setTimeout/setInterval in a Android Worker
This commit is contained in:
@@ -7,7 +7,7 @@ var timerId = 0;
|
||||
|
||||
function createHandlerAndGetId(): number {
|
||||
if (!timeoutHandler) {
|
||||
timeoutHandler = new android.os.Handler(android.os.Looper.getMainLooper());
|
||||
timeoutHandler = new android.os.Handler(android.os.Looper.myLooper());
|
||||
}
|
||||
|
||||
timerId++;
|
||||
|
||||
Reference in New Issue
Block a user