This fixed setTimeout/setInterval for Android

This commit is contained in:
Nathanael Anderson
2016-10-19 19:48:53 -05:00
parent 555328e9bc
commit 8281e81621

View File

@@ -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++;