From 7bd8b4c653c83b1905ee3e4449729a9d1417b1c0 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 3 Apr 2024 10:29:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A4=B1=E8=B4=A5=E5=90=8E=E9=9D=9E=E4=B8=BB?= =?UTF-8?q?=E7=BA=BF=E7=A8=8B=E6=9B=B4=E6=96=B0UI=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../erban/community/publish/presenter/PublishPresenter.java | 3 +++ gradle.properties | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/module_community/java/com/yizhuan/erban/community/publish/presenter/PublishPresenter.java b/app/src/module_community/java/com/yizhuan/erban/community/publish/presenter/PublishPresenter.java index 2ebbea40c..dca3d9237 100644 --- a/app/src/module_community/java/com/yizhuan/erban/community/publish/presenter/PublishPresenter.java +++ b/app/src/module_community/java/com/yizhuan/erban/community/publish/presenter/PublishPresenter.java @@ -68,6 +68,7 @@ public class PublishPresenter extends BaseMvpPresenter { public void acceptThrowable(String s, Throwable throwable) { super.acceptThrowable(s, throwable); if (throwable != null) { + throwable.printStackTrace(); dealUploadFileError(throwable); } else { if (getMvpView() != null) { @@ -134,11 +135,13 @@ public class PublishPresenter extends BaseMvpPresenter { .flatMap((Function>) path -> FileModel.get().uploadFile(path)) .compose(bindUntilEvent(PresenterEvent.DESTROY)) + .observeOn(AndroidSchedulers.mainThread()) .subscribe(new DontWarnObserver() { @Override public void acceptThrowable(String url, Throwable throwable) { super.acceptThrowable(url, throwable); if (throwable != null) { + throwable.printStackTrace(); if (mImageUploadSubscribe != null) { mImageUploadSubscribe.dispose(); } diff --git a/gradle.properties b/gradle.properties index 1aa493307..9077941bd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -31,8 +31,8 @@ COMPILE_SDK_VERSION=33 MIN_SDK_VERSION=21 TARGET_SDK_VERSION=33 -version_name=2.6.5 -version_code=2605 +version_name=2.6.6 +version_code=2606 #systemProp.https.proxyHost=127.0.0.1 #systemProp.https.proxyPort=7890 \ No newline at end of file