@Override protected boolean restoreExtras(Bundle extra) { if (isBundleEmpty(extra) || !extra.containsKey(EXTRA_VEHICLE_NO)) { return false; } mVehicleNoIndicatorText.setTextValue(extra.getString(EXTRA_VEHICLE_NO)); mVehicleModelIndicatorText.setTextValue(extra.getString(EXTRA_VEHICLE_MODEL)); mOilPriceIndicatorEdit.setEditTextValue(extra.getString(EXTRA_OIL_PRICE)); int currentMileage = Integer.valueOf(extra.getString(EXTRA_CURRENT_MILEAGE)); mCurrentMileageIndicatorEdit.setEditTextValue( currentMileage <= 0 ? "" : String.valueOf(currentMileage)); mMaintainPeriodIndicatorEdit.setEditTextValue(extra.getString(EXTRA_MATINTAIN_PERIOD)); mLastMaintainMileageIndicatorEdit.setEditTextValue( extra.getString(EXTRA_LAST_MAINTAIN_MILEAGE)); mNextMaintainTimeIndicatorText.setTextValue(extra.getString(EXTRA_NEXT_MAINTAIN_TIME)); mNextExaminationTimeIndicatorText.setTextValue(extra.getString(EXTRA_NEXT_EXAMINATION_TIME)); return true; }