From 8281e816215fc65c9d89907f8193d94f086a7476 Mon Sep 17 00:00:00 2001 From: Nathanael Anderson Date: Wed, 19 Oct 2016 19:48:53 -0500 Subject: [PATCH] This fixed setTimeout/setInterval for Android --- tns-core-modules/timer/timer.android.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/timer/timer.android.ts b/tns-core-modules/timer/timer.android.ts index 5e362d083..8013c017c 100644 --- a/tns-core-modules/timer/timer.android.ts +++ b/tns-core-modules/timer/timer.android.ts @@ -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++;