增加填写手机号码字符串非空非null判断

This commit is contained in:
zengfantian 2015-02-01 03:18:20 +08:00
parent 96301e8e16
commit 0c4dcc948b
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ import com.zftlive.android.MApplication;
import com.zftlive.android.R;
import com.zftlive.android.base.BaseActivity;
import com.zftlive.android.tools.ToolAlert;
import com.zftlive.android.tools.ToolNetwork;
import com.zftlive.android.tools.ToolSMS;
import com.zftlive.android.tools.ToolString;
/**
@ -65,7 +65,7 @@ public class PhoneValidateCodeActivity extends BaseActivity {
@Override
public void onClick(View v) {
if(et_phone.getText().toString() != ""){
if(ToolString.isNoBlankAndNoNull(et_phone.getText().toString().trim())){
if(((MApplication)getApplicationContext()).isNetworkReady()){
ToolSMS.getVerificationCode(et_phone.getText().toString());
startTimer();