@Override protected void onSaveInstanceState(Bundle outState) { outState.putString(EXTRA_VEHICLE_NO, mVehicleNoIndicatorText.getTextValue()); outState.putString(EXTRA_VEHICLE_MODEL, mVehicleModelIndicatorText.getTextValue()); outState.putString(EXTRA_OIL_PRICE, mOilPriceIndicatorEdit.getEditTextValue()); outState.putString(EXTRA_CURRENT_MILEAGE, mCurrentMileageIndicatorEdit.getEditTextValue()); outState.putString(EXTRA_MATINTAIN_PERIOD, mMaintainPeriodIndicatorEdit.getEditTextValue()); outState.putString( EXTRA_LAST_MAINTAIN_MILEAGE, mLastMaintainMileageIndicatorEdit.getEditTextValue()); outState.putString(EXTRA_NEXT_MAINTAIN_TIME, mNextMaintainTimeIndicatorText.getTextValue()); outState.putString( EXTRA_NEXT_EXAMINATION_TIME, mNextExaminationTimeIndicatorText.getTextValue()); super.onSaveInstanceState(outState); }
/** * 当前里程是否小于等于 0 * * @return */ private boolean isCurrentMileageLessEqualZero() { String currentMileageStr = mCurrentMileageIndicatorEdit.getEditTextValue(); if (Integer.valueOf(currentMileageStr) <= 0) { App.showShortToast(getString(R.string.txt_info_current_mileage_too_low)); return true; } return false; }
private boolean invalidateOilPriceRange() { boolean flag = StringUtil.validateOilPrice( mOilPriceIndicatorEdit.getEditTextValue(), mOilpriceMinValue, mOilpriceMaxValue); if (!flag) { App.showShortToast(getString(R.string.txt_info_oil_price_out_of_range)); } return !flag; }