private synchronized void maybeScheduleInactivityCheck() {
    if (!mInactivityCheckScheduled) {
      mInactivityCheckScheduled = true;
      mScheduledExecutorServiceForUiThread.schedule(
          mIsInactiveCheck, mInactivityCheckPollingTimeMs, TimeUnit.MILLISECONDS);
    }
  }
Watchdog runnable that calls {@link InactivityListener#onInactive()} if necessary or schedules
a new watchdog task otherwise.
animated-drawable/src/main/java/com/facebook/fresco/animation/backend/AnimationBackendDelegateWithInactivityCheck.java