HandlerThreadScheduler fix

It's a best practice in android to check the current thread before using `Handler.post` and `Handler.postDelayed` because it can help to avoid unwanted UI blinks.