From 1a6f8d5b249cd6ac25e1bdd8d1939167d920d5ec Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sat, 10 Aug 2019 21:11:45 +0200 Subject: [PATCH] fix CalledFromWrongThreadException in ComposeActivity (#1447) --- app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java index 2c459fd81..5b53b0e66 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java +++ b/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);