fix:修复发布动态上传失败后子线程回调更新UI导致崩溃问题

This commit is contained in:
Max
2024-04-03 11:19:10 +08:00
parent 06f31c3e9c
commit 1e80959db6
2 changed files with 3 additions and 2 deletions

View File

@@ -133,6 +133,7 @@ public class PublishPresenter extends BaseMvpPresenter<IPublishView> {
.flatMap((Function<String, SingleSource<String>>)
path -> FileModel.get().uploadFile(path))
.compose(bindUntilEvent(PresenterEvent.DESTROY))
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new DontWarnObserver<String>() {
@Override
public void acceptThrowable(String url, Throwable throwable) {

View File

@@ -28,6 +28,6 @@ COMPILE_SDK_VERSION=32
MIN_SDK_VERSION=21
TARGET_SDK_VERSION=32
version_name=2.1.3
version_code=2103
version_name=2.1.4
version_code=2104
minify_enabled=false