fix CalledFromWrongThreadException in ComposeActivity (#1447)
This commit is contained in:
parent
5a70f28192
commit
1a6f8d5b24
1 changed files with 1 additions and 0 deletions
|
@ -314,6 +314,7 @@ public final class ComposeActivity
|
|||
activeAccount.getFullName()));
|
||||
|
||||
mastodonApi.getInstance()
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.as(autoDisposable(from(this, Lifecycle.Event.ON_DESTROY)))
|
||||
.subscribe(this::onFetchInstanceSuccess, this::onFetchInstanceFailure);
|
||||
|
||||
|
|
Loading…
Reference in a new issue