Commit 4bcfb5dc by 罗翻

用户界面bug修改

parent 4f8a33bd
......@@ -10,6 +10,7 @@ import android.os.Handler;
import com.dayu.bigfish.utils.HxManager;
import com.dayu.common.BaseApplication;
import com.dayu.common.Constants;
import com.dayu.location.base.LocationUtils;
import com.dayu.order.greendao.GreenDaoManager;
import com.dayu.utils.NetworkConnectChangedReceiver;
......@@ -62,6 +63,7 @@ public class MyApplication extends BaseApplication {
* 初始化友盟.
*/
private void initUM() {
MobclickAgent.setCatchUncaughtExceptions(!Constants.IS_DEBUG);
UMConfigure.init(this, UMConfigure.DEVICE_TYPE_PHONE, null);
UMConfigure.setLogEnabled(true);
UMConfigure.setEncryptEnabled(true);
......
......@@ -37,7 +37,7 @@ public class PersonInfoPresenter extends PersonInfoContract.Presenter {
@Override
public void dumpToModifyPerson() {
if (info.get().getAduitStatus() == 3) {
if (info.get() != null && info.get().getAduitStatus() == 3) {
Bundle bundle = new Bundle();
bundle.putSerializable(Constants.ENGINEERINFO, info.get());
mView.startActivity(ModifyPersonInfoActivity.class, bundle);
......
......@@ -29,7 +29,9 @@ public class PersonInfoActivity extends BaseActivity<PersonInfoPresenter, Activi
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == 1 && data != null) {
String url = data.getStringExtra(Constants.PICURL);
if (mPresenter.info.get() != null) {
mPresenter.info.get().setAccountUrl(url);
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment