@Override
        public void run() {
          synchronized (AnimationBackendDelegateWithInactivityCheck.this) {
            mInactivityCheckScheduled = false;
            if (isInactive()) {
              if (mInactivityListener != null) {
                mInactivityListener.onInactive();
              }
            } else {
              maybeScheduleInactivityCheck();
            }
          }
        }
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