fix CalledFromWrongThreadException in ComposeActivity (#1447)

main
Konrad Pozniak 5 years ago committed by GitHub
parent 3aa74fc7c0
commit 09dd2afff0
  1. 1
      app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java

@ -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…
Cancel
Save