From dc547181e4d6cb284fa74408295f05a33579f4e7 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Thu, 14 Nov 2024 12:27:22 +0100 Subject: [PATCH] add disposable however i was not able to see onDestroy being executed. anyway, disposables won't be necessary when coroutine is used. also: remove a useless outdated log line Signed-off-by: Marcel Hibbe --- app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index d1cd90f960..3b327ffe23 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -2440,7 +2440,7 @@ class ChatActivity : currentlyPlayedVoiceMessage?.let { stopMediaPlayer(it) } // FIXME, mediaplayer can sometimes be null here adapter = null - Log.d(TAG, "inConversation was set to false!") + disposables.dispose() } private fun joinRoomWithPassword() { @@ -2505,7 +2505,7 @@ class ChatActivity : ?.observeOn(AndroidSchedulers.mainThread()) ?.subscribe(object : Observer { override fun onSubscribe(d: Disposable) { - // unused atm + disposables.add(d) } override fun onNext(signalingSettingsOverall: SignalingSettingsOverall) {