修复注册设置资料性别问题
This commit is contained in:
parent
430c24db05
commit
4bd1e8eccc
@ -56,7 +56,7 @@ public class CompleteActivity extends AbsOTOActivity {
|
||||
private TextView userBirthday; //年龄
|
||||
private Button btnRegister; //提交资料
|
||||
|
||||
private int sex = -1;
|
||||
private int sex = -1; //1 男 2女
|
||||
|
||||
ProcessImageUtil cameraUtil;
|
||||
|
||||
@ -162,7 +162,7 @@ public class CompleteActivity extends AbsOTOActivity {
|
||||
userSex1.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
changeSex(0);
|
||||
changeSex(2);
|
||||
}
|
||||
});
|
||||
userSex2.setOnClickListener(new View.OnClickListener() {
|
||||
@ -257,7 +257,7 @@ public class CompleteActivity extends AbsOTOActivity {
|
||||
|
||||
private void changeSex(int i) {
|
||||
sex = i;
|
||||
if (sex == 0) {
|
||||
if (sex == 2) {
|
||||
userSex1.setTextColor(getResources().getColor(R.color.white));
|
||||
userSex2.setTextColor(getResources().getColor(R.color.text_gray));
|
||||
userSex1.setBackgroundResource(R.mipmap.icon_user_sex_02);
|
||||
|
Loading…
x
Reference in New Issue
Block a user