...
|
...
|
@@ -30,6 +30,7 @@ import com.yinhebairong.clasmanage.ui.my.Select_StudentActivity; |
|
|
import com.yinhebairong.clasmanage.ui.my.StudentHeadImgActivity;
|
|
|
import com.yinhebairong.clasmanage.ui.my.view.PromptDialog;
|
|
|
import com.yinhebairong.clasmanage.utils.SharedPreferenceUtil;
|
|
|
import com.yinhebairong.clasmanage.view.DebugLog;
|
|
|
import com.yinhebairong.clasmanage.widget.CircleImageView;
|
|
|
|
|
|
import butterknife.BindView;
|
...
|
...
|
@@ -38,7 +39,6 @@ import io.reactivex.Observer; |
|
|
import io.reactivex.android.schedulers.AndroidSchedulers;
|
|
|
import io.reactivex.disposables.Disposable;
|
|
|
import io.reactivex.schedulers.Schedulers;
|
|
|
import tv.danmaku.ijk.media.player.pragma.DebugLog;
|
|
|
|
|
|
/**
|
|
|
* A simple {@link Fragment} subclass.
|
...
|
...
|
@@ -83,7 +83,7 @@ public class MineFragment_per extends BaseFragment { |
|
|
tv_phone.setText(loginEntity.getData().getUser().getPhone());
|
|
|
if (Config.StudentPhoto != null && Config.StudentPhoto.length() > 0) {
|
|
|
Glide.with(getActivity()).load(Config.StudentPhoto).apply(requestOptions).into(img_student);
|
|
|
}else{
|
|
|
} else {
|
|
|
img_student.setImageResource(R.mipmap.man_icon);
|
|
|
}
|
|
|
if (null != loginEntity.getData().getUser().getPhoto()) {
|
...
|
...
|
@@ -152,14 +152,12 @@ public class MineFragment_per extends BaseFragment { |
|
|
|
|
|
@Override
|
|
|
public void onNext(ParentsInfoBean teacherInfoBean) {
|
|
|
Log.e("onNext==", "2");
|
|
|
if (teacherInfoBean.getCode() == M.success) {
|
|
|
if (null != teacherInfoBean.getData()) {
|
|
|
// if(tv_phone==null){
|
|
|
// Log.e("tv_phone===null", "tv_phone===null");
|
|
|
// return;
|
|
|
// }
|
|
|
Log.e("teacherInfoBean==", teacherInfoBean.getData().getName());
|
|
|
teacherName.setText(teacherInfoBean.getData().getName());
|
|
|
tv_phone.setText(teacherInfoBean.getData().getAccount());
|
|
|
if (null != teacherInfoBean.getData().getPhoto()) {
|
...
|
...
|
@@ -199,11 +197,12 @@ public class MineFragment_per extends BaseFragment { |
|
|
@Override
|
|
|
public void onResume() {
|
|
|
super.onResume();
|
|
|
Log.e("StudentPhoto===", "666===" + Config.StudentPhoto);
|
|
|
Config.StudentPhoto = (String) SharedPreferenceUtil.get(getActivity(), M.STUDENTPHOTO, Config.StudentPhoto);
|
|
|
if (Config.StudentPhoto != null) {
|
|
|
if (Config.StudentPhoto != null && Config.StudentPhoto.length() > 0) {
|
|
|
RequestOptions requestOptions = new RequestOptions();
|
|
|
Glide.with(getActivity()).load(Config.StudentPhoto).apply(requestOptions).into(img_student);
|
|
|
} else {
|
|
|
img_student.setImageResource(R.mipmap.man_icon);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|