|
|
@@ -8,6 +8,7 @@ import android.util.Log;
|
|
|
import java.io.EOFException;
|
|
|
import java.net.SocketTimeoutException;
|
|
|
|
|
|
+import io.reactivex.android.schedulers.AndroidSchedulers;
|
|
|
import io.reactivex.disposables.Disposable;
|
|
|
import kr.co.zumo.app.lifeplus.model.PinModel;
|
|
|
import kr.co.zumo.app.lifeplus.model.SuperModel;
|
|
|
@@ -79,6 +80,7 @@ public class PinPresenter extends Presenter<PinModel, IPinView> {
|
|
|
|
|
|
view.setDisabledPinDialog();
|
|
|
disposable = model.verifyPin(SuperModel.getInstance().getUuid(), pin)
|
|
|
+ .observeOn(AndroidSchedulers.mainThread())
|
|
|
.subscribe(bean -> {
|
|
|
|
|
|
Log.i("APP# PinPresenter | verifyPin", "|" + bean.toPrettyJson());
|
|
|
@@ -99,7 +101,7 @@ public class PinPresenter extends Presenter<PinModel, IPinView> {
|
|
|
if (e instanceof EOFException) {
|
|
|
Log.e("APP# PinPresenter | verifyPin", "| EOFException-- " + e.getLocalizedMessage());
|
|
|
}
|
|
|
- else if(e instanceof SocketTimeoutException) {
|
|
|
+ else if (e instanceof SocketTimeoutException) {
|
|
|
Log.e("APP# PinPresenter | verifyPin", "| SocketTimeoutException-- " + e.getLocalizedMessage());
|
|
|
}
|
|
|
|