Commit 75546502 by tangguangrui

修改闪退bug和获取七牛数据提示失败的问题

parent 977a57c2
...@@ -162,7 +162,8 @@ public class DetailActivity extends NetBaseAppCompatActivity { ...@@ -162,7 +162,8 @@ public class DetailActivity extends NetBaseAppCompatActivity {
adapter = new MyAdapter(); adapter = new MyAdapter();
listView.setAdapter(adapter); listView.setAdapter(adapter);
loadData();
initQiNiuToken();
} }
...@@ -203,6 +204,12 @@ public class DetailActivity extends NetBaseAppCompatActivity { ...@@ -203,6 +204,12 @@ public class DetailActivity extends NetBaseAppCompatActivity {
netPicUtil.display(facePicture,qiNiuTokenBean.url+bean.user.faceImg); netPicUtil.display(facePicture,qiNiuTokenBean.url+bean.user.faceImg);
} }
} }
@Override
public void requestFinish() {
super.requestFinish();
loadData();
}
}, null); }, null);
} }
...@@ -222,7 +229,6 @@ public class DetailActivity extends NetBaseAppCompatActivity { ...@@ -222,7 +229,6 @@ public class DetailActivity extends NetBaseAppCompatActivity {
// idNoTitle.setVisibility(bean.user.isBindingId == 1 ? View.INVISIBLE : View.VISIBLE); // idNoTitle.setVisibility(bean.user.isBindingId == 1 ? View.INVISIBLE : View.VISIBLE);
// idCode.setVisibility(bean.user.isBindingId == 1 ? View.INVISIBLE : View.VISIBLE); // idCode.setVisibility(bean.user.isBindingId == 1 ? View.INVISIBLE : View.VISIBLE);
noteInput.setText(bean.user.remark); noteInput.setText(bean.user.remark);
initQiNiuToken();
} }
if(bean.visitList != null){ if(bean.visitList != null){
data.addAll(bean.visitList); data.addAll(bean.visitList);
......
...@@ -138,7 +138,7 @@ public class PassThroughDetailActivity extends NetBaseAppCompatActivity { ...@@ -138,7 +138,7 @@ public class PassThroughDetailActivity extends NetBaseAppCompatActivity {
roundlayoutPic.setRoundLayoutBorder(Color.parseColor("#999999"),1); roundlayoutPic.setRoundLayoutBorder(Color.parseColor("#999999"),1);
roundlayoutAddPic.setRoundLayoutRadius(20f); roundlayoutAddPic.setRoundLayoutRadius(20f);
roundlayoutAddPic.setRoundLayoutBorder(Color.parseColor("#999999"),1); roundlayoutAddPic.setRoundLayoutBorder(Color.parseColor("#999999"),1);
loadData(); initQiNiuToken();
} }
@OnClick({R.id.backBtn,R.id.bindBtn,R.id.editBtn,R.id.addPic}) @OnClick({R.id.backBtn,R.id.bindBtn,R.id.editBtn,R.id.addPic})
...@@ -203,7 +203,6 @@ public class PassThroughDetailActivity extends NetBaseAppCompatActivity { ...@@ -203,7 +203,6 @@ public class PassThroughDetailActivity extends NetBaseAppCompatActivity {
editBtn.setVisibility(View.GONE); editBtn.setVisibility(View.GONE);
} }
initQiNiuToken();
} }
} }
...@@ -228,6 +227,12 @@ public class PassThroughDetailActivity extends NetBaseAppCompatActivity { ...@@ -228,6 +227,12 @@ public class PassThroughDetailActivity extends NetBaseAppCompatActivity {
} }
} }
@Override
public void requestFinish() {
super.requestFinish();
loadData();
}
}, null); }, null);
} }
......
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 to comment