private void finishKbMode(boolean updateDisplays){
  mInKbMode=false;
  if (!mTypedTimes.isEmpty()) {
    int values[]=getEnteredTime(null);
    if (tabHost.getCurrentTab() == 0) {
      mTimePicker.setTime(values[0],values[1]);
      if (!mIs24HourMode) {
        mTimePicker.setAmOrPm(values[2]);
      }
    }
 else {
      mTimePickerEnd.setTime(values[0],values[1]);
      if (!mIs24HourMode) {
        mTimePickerEnd.setAmOrPm(values[2]);
      }
    }
    mTypedTimes.clear();
  }
  if (updateDisplays) {
    updateDisplay(false);
    if (tabHost.getCurrentTab() == 0) {
      mTimePicker.trySettingInputEnabled(true);
    }
 else {
      mTimePickerEnd.trySettingInputEnabled(true);
    }
  }
}

private void finishKbMode ( boolean updateDisplays ) { mInKbMode = false ; if ( ! mTypedTimes . isEmpty ( ) ) { int values [ ] = getEnteredTime ( null ) ; if ( tabHost . getCurrentTab ( ) == 0 ) { mTimePicker . setTime ( values [ 0 ] , values [ 1 ] ) ; if ( ! mIs24HourMode ) { mTimePicker . setAmOrPm ( values [ 2 ] ) ; } } else { mTimePickerEnd . setTime ( values [ 0 ] , values [ 1 ] ) ; if ( ! mIs24HourMode ) { mTimePickerEnd . setAmOrPm ( values [ 2 ] ) ; } } mTypedTimes . clear ( ) ; } if ( updateDisplays ) { updateDisplay ( false ) ; if ( tabHost . getCurrentTab ( ) == 0 ) { mTimePicker . trySettingInputEnabled ( true ) ; } else { mTimePickerEnd . trySettingInputEnabled ( true ) ; } } }
get out of keyboard mode . if there is nothing in typedtimes , revert to timepicker ' s time .
