private void scheduleCommercial(int length){
  Long delay=commercialDelay.getSettingValue();
  if (delay == null) {
    setCommercialResult("Invalid delay specified.");
    clearCommercialButtonsSelection();
  }
 else {
    scheduledCommercialTime=System.currentTimeMillis() + delay * 1000;
    scheduledCommercialLength=length;
    update();
  }
}

private void scheduleCommercial ( int length ) { Long delay = commercialDelay . getSettingValue ( ) ; if ( delay == null ) { setCommercialResult ( "Invalid delay specified." ) ; clearCommercialButtonsSelection ( ) ; } else { scheduledCommercialTime = System . currentTimeMillis ( ) + delay * 1000 ; scheduledCommercialLength = length ; update ( ) ; } }
schedules a commercial of the given length to be run after the delay currently set in the delay input field .
