Merge changes I74d8f555,I7521a5a1 into rvc-dev

* changes:
  Prevent ANR if window is stopped
  Isolate batched input scheduling logic.