Skip to content

Commit 8281e81

Browse files
author
Nathanael Anderson
committed
This fixed setTimeout/setInterval for Android
1 parent 555328e commit 8281e81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tns-core-modules/timer/timer.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var timerId = 0;
77

88
function createHandlerAndGetId(): number {
99
if (!timeoutHandler) {
10-
timeoutHandler = new android.os.Handler(android.os.Looper.getMainLooper());
10+
timeoutHandler = new android.os.Handler(android.os.Looper.myLooper());
1111
}
1212

1313
timerId++;

0 commit comments

Comments
 (0)