public void runNextPendingCommand() {
    long peakDelay = mQueue.getHeadDelay();
    ScheduledTask<?> scheduledTask = mQueue.pop();
    scheduledTask.run();
    if (!scheduledTask.isCancelled() && scheduledTask.isRepeat()) {
      mQueue.add(scheduledTask.mRepeatDelay + peakDelay, scheduledTask);
    }
  }
public void runNextPendingCommand ( ) { long peakDelay = mQueue . getHeadDelay ( ) ; ScheduledTask < ? > scheduledTask = mQueue . pop ( ) ; scheduledTask . run ( ) ; if ( ! scheduledTask . isCancelled ( ) && scheduledTask . isRepeat ( ) ) { mQueue . add ( scheduledTask . mRepeatDelay + peakDelay , scheduledTask ) ; } }
Runs the next command scheduled to be executed immediately.