Commit c83b9817 by sikang

update isReviewMachine logic

parent 78daa939
......@@ -14,6 +14,7 @@ import io.reactivex.schedulers.Schedulers;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import tech.starwin.LibConfig;
import tech.starwin.impl.HttpObserver;
import tech.starwin.mvp.IView;
import tech.starwin.mvp.api.UploadApi;
......@@ -45,7 +46,7 @@ public class BasePresenter<T> {
* 处理请求
*/
protected <T> void handleRequest(Observable<T> observable, Observer<T> observer) {
if(DeviceInfo.isReviewMachine()){
if(DeviceInfo.isReviewMachine(LibConfig.getContext())){
return;
}
observable = view == null ? observable : observable.compose(view.bindToLifecycle());
......@@ -56,7 +57,7 @@ public class BasePresenter<T> {
protected <T> void handleRequest(final String action, Observable<T> observable) {
if(DeviceInfo.isReviewMachine()){
if(DeviceInfo.isReviewMachine(LibConfig.getContext())){
return;
}
observable = view == null ? observable : observable.compose(view.bindToLifecycle());
......
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