From 85f637ca8a55e36fe0503ba9d36f719afdf8ed01 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Tue, 16 May 2023 17:26:50 +0200 Subject: [PATCH] WIP. update UI when typing message received Signed-off-by: Marcel Hibbe --- .../java/com/nextcloud/talk/chat/ChatActivity.kt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 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 18eed29a9..5375cff48 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -321,17 +321,13 @@ class ChatActivity : override fun onStartTyping(session: String?) { val name = webSocketInstance?.getDisplayNameForSession(session) - runOnUiThread { - Toast.makeText(this@ChatActivity, name + " started typing", Toast.LENGTH_SHORT).show() - } + // binding.typingIndicator.visibility = View.VISIBLE + binding.typingIndicator.text = name + " started typing" } override fun onStopTyping(session: String?) { - val name = webSocketInstance?.getDisplayNameForSession(session) - - runOnUiThread { - Toast.makeText(this@ChatActivity, name + " stopped typing", Toast.LENGTH_SHORT).show() - } + // binding.typingIndicator.visibility = View.INVISIBLE + binding.typingIndicator.text = "x" } }