Fixed open group chat updates UI on the background thread.

Fixes #189 #294
This commit is contained in:
Anton Chekulaev
2020-09-21 11:53:16 +10:00
parent 997568b325
commit 00d2fa7e6f
2 changed files with 3 additions and 1 deletions

View File

@@ -458,7 +458,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
PublicChat publicChat = DatabaseFactory.getLokiThreadDatabase(this).getPublicChat(threadId);
if (publicChat != null) {
ApplicationContext.getInstance(this).getPublicChatAPI().getChannelInfo(publicChat.getChannel(), publicChat.getServer()).success(displayName -> {
updateSubtitleTextView();
runOnUiThread(ConversationActivity.this::updateSubtitleTextView);
return Unit.INSTANCE;
});
}
@@ -492,6 +492,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
Log.i(TAG, "onNewIntent()");
if (isFinishing()) {