|
|
@@ -18,7 +18,6 @@ import com.sheep.gamegroup.absBase.BaseActivity;
|
|
|
import com.sheep.gamegroup.di.components.DaggerChangePhoneComponent;
|
|
|
import com.sheep.gamegroup.di.modules.PhoneModule;
|
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
-import com.sheep.gamegroup.model.entity.UserEntity;
|
|
|
import com.sheep.gamegroup.presenter.PhoneContract;
|
|
|
import com.sheep.gamegroup.presenter.PhonePresenter;
|
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
|
@@ -90,7 +89,6 @@ public class ChangeTelAct extends BaseActivity implements PhoneContract.View{
|
|
|
|
|
|
private String hitStr = "请输入手机号";
|
|
|
private String noticeStr = "绑定手机号";
|
|
|
- private UserEntity userEntity = null;
|
|
|
String mobiles;
|
|
|
|
|
|
//验证码倒计时
|
|
|
@@ -153,13 +151,7 @@ public class ChangeTelAct extends BaseActivity implements PhoneContract.View{
|
|
|
case 30001:
|
|
|
break;
|
|
|
}
|
|
|
- try {
|
|
|
- userEntity = MyDbManager.getInstance()
|
|
|
- .dbFindUser();
|
|
|
- } catch (DbException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- mobiles = userEntity != null ? userEntity.getMobile() : SpUtils.getPhone(activity);
|
|
|
+ mobiles = SpUtils.getPhone(activity);
|
|
|
if(!TextUtils.isEmpty(mobiles)){//提示
|
|
|
oldOrNew = 1;
|
|
|
showChangeLayout.setVisibility(View.VISIBLE);
|