use of com.rideread.rideread.common.event.RefreshProfileEvent in project ride-read-android by Ride-Read.
the class UserInfoActivity method saveCurInfo.
private void saveCurInfo() {
UserInfo curInfo = new UserInfo(mFaceUrl, mNick, mCurSexIndex + 1, mLabels, mSignature, mSchool, mLocation, mHomeTown, mCareer);
ApiUtils.update(curInfo, mBirthday, new BaseCallback<BaseModel<UserInfo>>() {
@Override
protected void onSuccess(BaseModel<UserInfo> model) throws Exception {
UserInfo userInfo = model.getData();
if (null != userInfo) {
UserUtils.saveUserInfo(userInfo);
finish();
EventBus.getDefault().postSticky(new RefreshProfileEvent());
}
}
});
}
Aggregations