1、修改包的图片
2、修改房间的所有进出方式
This commit is contained in:
@@ -241,7 +241,7 @@ public class CircleCategoryFragment extends BaseMvpFragment<CirclePresenter, Fra
|
||||
|
||||
@Override
|
||||
public void setLikeZone(int type) {
|
||||
MvpPre.getCircleList(page + "", "10");
|
||||
// MvpPre.getCircleList(page + "", "10");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -10,14 +10,18 @@ import com.xscm.moduleutil.bean.HeatedBean;
|
||||
import com.xscm.moduleutil.http.BaseObserver;
|
||||
import com.xscm.moduleutil.presenter.BasePresenter;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.List;
|
||||
|
||||
import io.reactivex.disposables.Disposable;
|
||||
|
||||
public class CirclePresenter extends BasePresenter<CircleContacts.View> implements CircleContacts.IIndexPre {
|
||||
|
||||
CircleContacts.View mView;
|
||||
|
||||
public CirclePresenter(CircleContacts.View view, Context context) {
|
||||
super(view, context);
|
||||
this.mView = view;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -32,6 +36,9 @@ public class CirclePresenter extends BasePresenter<CircleContacts.View> implemen
|
||||
|
||||
@Override
|
||||
public void onNext(List<HeatedBean> heatedBeanList) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().setCategories(heatedBeanList);
|
||||
}
|
||||
});
|
||||
@@ -48,6 +55,9 @@ public class CirclePresenter extends BasePresenter<CircleContacts.View> implemen
|
||||
|
||||
@Override
|
||||
public void onNext(List<CircleListBean> circleListBeans) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().setCircleList(circleListBeans);
|
||||
MvpRef.get().finishComment();
|
||||
}
|
||||
@@ -65,6 +75,9 @@ public class CirclePresenter extends BasePresenter<CircleContacts.View> implemen
|
||||
|
||||
@Override
|
||||
public void onNext(List<ExpandColumnBean> expandColumnBeans) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().setExpandColumn(expandColumnBeans);
|
||||
MvpRef.get().finishComment();
|
||||
|
||||
@@ -101,6 +114,9 @@ public class CirclePresenter extends BasePresenter<CircleContacts.View> implemen
|
||||
|
||||
@Override
|
||||
public void onNext(String s) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().setLikeZone(2);
|
||||
}
|
||||
});
|
||||
@@ -117,6 +133,9 @@ public class CirclePresenter extends BasePresenter<CircleContacts.View> implemen
|
||||
|
||||
@Override
|
||||
public void onNext(List<CircleListBean> circleListBeans) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().setCircleList(circleListBeans);
|
||||
}
|
||||
});
|
||||
@@ -129,6 +148,9 @@ public class CirclePresenter extends BasePresenter<CircleContacts.View> implemen
|
||||
|
||||
@Override
|
||||
public void onNext(CircleListBean circleListBeans) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().setCircleDetail(circleListBeans);
|
||||
}
|
||||
});
|
||||
@@ -146,6 +168,9 @@ public class CirclePresenter extends BasePresenter<CircleContacts.View> implemen
|
||||
|
||||
@Override
|
||||
public void onNext(String s) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().setLikeZone(1);
|
||||
}
|
||||
});
|
||||
@@ -162,6 +187,9 @@ public class CirclePresenter extends BasePresenter<CircleContacts.View> implemen
|
||||
|
||||
@Override
|
||||
public void onNext(CommentBean commentBean) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().getCommentList(commentBean);
|
||||
}
|
||||
});
|
||||
@@ -178,6 +206,9 @@ public class CirclePresenter extends BasePresenter<CircleContacts.View> implemen
|
||||
|
||||
@Override
|
||||
public void onNext(String s) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().commentZone();
|
||||
}
|
||||
});
|
||||
@@ -193,6 +224,9 @@ public class CirclePresenter extends BasePresenter<CircleContacts.View> implemen
|
||||
|
||||
@Override
|
||||
public void onNext(String s) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().commentZone();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -10,11 +10,13 @@ import com.xscm.moduleutil.presenter.BasePresenter;
|
||||
import com.xscm.moduleutil.utils.oss.OSSOperUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.List;
|
||||
|
||||
import io.reactivex.disposables.Disposable;
|
||||
|
||||
public class ReleasePresenter extends BasePresenter<ReleaseContract.View> implements ReleaseContract.IIndexPre {
|
||||
ReleaseContract.View mView;
|
||||
public ReleasePresenter(ReleaseContract.View view, Context context) {
|
||||
super(view, context);
|
||||
}
|
||||
@@ -29,6 +31,9 @@ public class ReleasePresenter extends BasePresenter<ReleaseContract.View> implem
|
||||
|
||||
@Override
|
||||
public void onNext(List<HeatedBean> heatedBeanList) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().topicList(heatedBeanList);
|
||||
}
|
||||
});
|
||||
@@ -48,6 +53,9 @@ public class ReleasePresenter extends BasePresenter<ReleaseContract.View> implem
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
if (isViewAttach()) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().upLoadSuccess(OSSOperUtils.AliYunOSSURLFile + url, type, index, size);
|
||||
}
|
||||
}
|
||||
@@ -72,6 +80,9 @@ public class ReleasePresenter extends BasePresenter<ReleaseContract.View> implem
|
||||
|
||||
@Override
|
||||
public void onNext(String s) {
|
||||
if (MvpRef==null){
|
||||
MvpRef=new WeakReference<>(mView);
|
||||
}
|
||||
MvpRef.get().publishSuccess();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user