update 调整隐藏性别
update 调整完善资料报错提醒
This commit is contained in:
parent
02bc604685
commit
bd598176c1
@ -4,7 +4,7 @@ import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class FirstLoginBean extends BaseModel{
|
||||
@SerializedName("status")
|
||||
int status;//0是第一次登陸,1是已經登錄過的
|
||||
int status=-1;//0是第一次登陸,1是已經登錄過的
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
|
@ -94,8 +94,8 @@ public class InstructorOperationDialog extends AbsDialogFragment {
|
||||
mRootView.findViewById(R.id.to_msg).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
EventBus.getDefault().post(new InstructorOperationEvent());
|
||||
dismiss();
|
||||
EventBus.getDefault().post(new InstructorOperationEvent());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -3233,14 +3233,14 @@ public class LiveNetManager {
|
||||
String user_nicename,
|
||||
String avatar,
|
||||
String birthday,
|
||||
HttpCallback<List<BaseModel>> callback) {
|
||||
HttpCallback<HttpCallbackModel> callback) {
|
||||
API.get().pdLiveApi(mContext)
|
||||
.initUserInfo(sex, user_nicename, avatar, birthday)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(roomMicStatusModelResponseModel -> {
|
||||
.subscribe(listResponseModel -> {
|
||||
if (callback != null) {
|
||||
callback.onSuccess(roomMicStatusModelResponseModel.getData().getInfo());
|
||||
callback.onSuccess(new HttpCallbackModel(listResponseModel.getData().getCode(), listResponseModel.getData().getMsg()));
|
||||
}
|
||||
}, new Consumer<Throwable>() {
|
||||
@Override
|
||||
|
@ -20,6 +20,7 @@ import com.lxj.xpopup.XPopup;
|
||||
import com.yunbao.common.Constants;
|
||||
import com.yunbao.common.activity.AbsActivity;
|
||||
import com.yunbao.common.bean.BaseModel;
|
||||
import com.yunbao.common.bean.HttpCallbackModel;
|
||||
import com.yunbao.common.bean.LiveBean;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.http.LiveHttpUtil;
|
||||
@ -126,9 +127,13 @@ public class CompleteUserInfoActivity extends AbsActivity {
|
||||
userName.getText().toString(),
|
||||
(String) avatar.getTag(),
|
||||
year + "-" + (month + 1) + "-" + day,
|
||||
new HttpCallback<List<BaseModel>>() {
|
||||
new HttpCallback<HttpCallbackModel>() {
|
||||
@Override
|
||||
public void onSuccess(List<BaseModel> data) {
|
||||
public void onSuccess(HttpCallbackModel data) {
|
||||
if (data.getCode() == 500) {
|
||||
ToastUtil.show(data.getMsg());
|
||||
return;
|
||||
}
|
||||
String anchorId = getIntent().getStringExtra("anchor_id");
|
||||
if (StringUtil.isEmpty(anchorId)) {
|
||||
Intent intent = new Intent(CompleteUserInfoActivity.this, MainActivity.class);
|
||||
@ -226,7 +231,7 @@ public class CompleteUserInfoActivity extends AbsActivity {
|
||||
@Override
|
||||
public void onItemClick(String bean, int position) {
|
||||
avatar.setTag(bean);
|
||||
ImgLoader.display(mContext,bean,avatar);
|
||||
ImgLoader.display(mContext, bean, avatar);
|
||||
loading.dismiss();
|
||||
}
|
||||
});
|
||||
|
@ -879,7 +879,11 @@ public class EditProfileActivity extends AbsActivity {
|
||||
public void onSuccess(MessageUserInfoBean data) {
|
||||
userInfoBean = data;
|
||||
((TextView) findViewById(R.id.occupation)).setText(data.getInfo().getCareer());
|
||||
((TextView) findViewById(R.id.height)).setText(data.getInfo().getHeight() + "cm");
|
||||
String height = data.getInfo().getHeight();
|
||||
if("0".equals(height)||StringUtil.isEmpty(height)){
|
||||
height="170";
|
||||
}
|
||||
((TextView) findViewById(R.id.height)).setText(height + "cm");
|
||||
List<String> tags = WordUtil.isNewZh() ? data.getInfo().getCn_label() : data.getInfo().getEn_label();
|
||||
if (tags == null || tags.isEmpty()) return;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
@ -511,7 +511,7 @@ public class RegisterActivity extends AbsActivity {
|
||||
};
|
||||
|
||||
private void jumpMain(boolean showInvite, String anchorId) {
|
||||
Intent intent = new Intent(activity, CompleteUserInfoActivity.class);
|
||||
Intent intent = new Intent(activity, MainActivity.class);
|
||||
intent.putExtra(Constants.SHOW_INVITE, showInvite);
|
||||
intent.putExtra("anchor_id", anchorId);
|
||||
startActivity(intent);
|
||||
|
@ -395,7 +395,7 @@ public class MainHttpUtil {
|
||||
* @param fields 用户资料 ,以json形式出现
|
||||
*/
|
||||
public static void updateFields(String fields, HttpCallback callback) {
|
||||
HttpClient.getInstance().get("User.updateFields", MainHttpConsts.UPDATE_FIELDS)
|
||||
HttpClient.getInstance().get("Pdluser.updateFields", MainHttpConsts.UPDATE_FIELDS)
|
||||
.params("fields", fields)
|
||||
.execute(callback);
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import android.text.TextUtils;
|
||||
import android.text.TextWatcher;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.EditText;
|
||||
@ -34,9 +33,6 @@ import com.umeng.analytics.MobclickAgent;
|
||||
import com.yunbao.common.bean.ImUserInfoModel;
|
||||
import com.yunbao.common.bean.LiveBean;
|
||||
import com.yunbao.common.bean.MessageChatIsAnchor;
|
||||
import com.yunbao.common.bean.MessageUserInfoBean;
|
||||
import com.yunbao.common.dialog.MessageSayHiNotifyDialog;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.http.HttpCallback;
|
||||
import com.yunbao.common.http.LiveHttpUtil;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
@ -49,8 +45,6 @@ import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
||||
import com.yunbao.common.utils.RouteUtil;
|
||||
import com.yunbao.common.utils.SVGAViewUtils;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.ViewUtils;
|
||||
import com.yunbao.common.views.AbsMainViewHolder;
|
||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||
import com.yunbao.live.activity.SystemMessageActivity;
|
||||
@ -58,9 +52,7 @@ import com.yunbao.live.bean.ImUserBean;
|
||||
import com.yunbao.live.event.RecommendLiveRoomEvent;
|
||||
import com.yunbao.live.http.ImHttpUtil;
|
||||
import com.yunbao.main.R;
|
||||
import com.yunbao.main.activity.CompleteUserInfoActivity;
|
||||
import com.yunbao.main.activity.MainActivity;
|
||||
import com.yunbao.main.activity.MessageHiConfigRecordActivity;
|
||||
import com.yunbao.main.adapter.SystemMessageAdapter;
|
||||
import com.yunbao.main.dialog.MsgMoreDialog;
|
||||
import com.yunbao.main.fragment.MainMessageChatFragment;
|
||||
|
@ -201,6 +201,7 @@
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/btn_sex"
|
||||
android:visibility="gone"
|
||||
style="@style/edit_profile_group_not_color"
|
||||
android:onClick="editProfileClick">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user