public void setupAccountUserInfo(UserProfile preUserProfile, UserProfile currentUserProfile) { if (preUserProfile != null && currentUserProfile != null) { if (!mIsUserProfileUpdate) { displayImageView(mIvAvatar, null); } updateInfo(mTvEmail, preUserProfile.getEmail(), currentUserProfile.getEmail()); updateInfo(mTvUsername, preUserProfile.getUsername(), currentUserProfile.getUsername()); updateInfo( mFirstnameEditText, preUserProfile.getFirstName(), currentUserProfile.getFirstName()); updateInfo(mLastnameEditText, preUserProfile.getLastName(), currentUserProfile.getLastName()); updateInfo( mFianceFirstnameEditText, preUserProfile.getFianceFirstName(), currentUserProfile.getFianceFirstName()); updateInfo( mFianceLastnameEditText, preUserProfile.getFianceLastName(), currentUserProfile.getFianceLastName()); updateInfo( mHomeaddrEditText, preUserProfile.getHomeAddress(), currentUserProfile.getHomeAddress()); updateInfo( mCityStateEditText, preUserProfile.getCityState(), currentUserProfile.getCityState()); updateInfo(mZipEditText, preUserProfile.getZipCode(), currentUserProfile.getZipCode()); updateInfo(mPhoneEditText, preUserProfile.getPhoneNum(), currentUserProfile.getPhoneNum()); updateInfo( mWeddingDateEditText, preUserProfile.getWeddingDate(), currentUserProfile.getWeddingDate()); updateInfo( mWeddingLocationEditText, preUserProfile.getWeddingLocation(), currentUserProfile.getWeddingLocation()); mWeddingLocationMarketCode = currentUserProfile.getWeddingLocationMarketCode(); mHomeMarketCode = currentUserProfile.getHomeLocationMarketCode(); if (mIsUserProfileUpdate) { if (!preUserProfile.getWeddingBudget().equals(currentUserProfile.getWeddingBudget())) { updateWeddingbudgetEditText(currentUserProfile.getWeddingBudget()); } } else { updateWeddingbudgetEditText(preUserProfile.getWeddingBudget()); } } }