@Override public void onClick(View v) { switch (v.getId()) { // case R.id.tvChangeNumber: // finish(); // break; case R.id.button_back: finish(); break; case R.id.button_verify: if (UIUtils.ensureNetworkInternet(this, false)) { showLoading(); UIUtils.hideSoftInput(v); String verifyCode = etVerifyCode.getText().toString(); if (verifyCode.length() != 6) { UIUtils.alert(this, R.string.invalid_verify_code_length); hideLoading(); return; } if (TextUtil.isEmpty(verifyCode)) { UIUtils.alert(this, R.string.please_enter_your_verify_code_sent_to_phone_number); hideLoading(); return; } requestVerifyCode(verifyCode); } break; default: UIUtils.alert(this, "Still builiding.. !"); break; } }
@Override public void onClick(View v) { UIUtils.hideSoftInput(mActivity); Intent intent; switch (v.getId()) { case R.id.btnShowDrawer: if (mActivity != null) { mActivity.showNavigationDrawer(); } break; case R.id.button_edit: intent = new Intent(mActivity.context, EditProfileActivity.class); startActivityForResult(intent, Contains.REQUEST_EDIT_INFO); break; case R.id.avatar: askHowTakePhoto(); break; } }