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 8ab097d09fa..b2926f804b8 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -45,6 +45,7 @@ import android.view.animation.AccelerateDecelerateInterpolator import android.widget.AbsListView import android.widget.FrameLayout import android.widget.ImageView +import android.widget.LinearLayout import android.widget.PopupMenu import android.widget.TextView import androidx.activity.OnBackPressedCallback @@ -1153,8 +1154,8 @@ class ChatActivity : binding.outOfOfficeContainer.findViewById(R.id.replacement_user_name).text = uiState.userAbsence.replacementUserDisplayName } else { - binding.outOfOfficeContainer.findViewById(R.id.absenceReplacement).visibility = - View.GONE + binding.outOfOfficeContainer.findViewById(R.id.userAbsenceReplacement) + .visibility = View.GONE } binding.outOfOfficeContainer.findViewById(R.id.userAbsenceLongMessage).text = uiState.userAbsence.message diff --git a/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt b/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt index 328170b3487..0f64432ec17 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt @@ -7,6 +7,7 @@ */ package com.nextcloud.talk.chat.viewmodels +import android.annotation.SuppressLint import android.content.Context import android.net.Uri import android.os.Bundle @@ -54,6 +55,7 @@ import java.io.File import javax.inject.Inject @Suppress("TooManyFunctions", "LongParameterList") +@SuppressLint("TooGenericExceptionCaught") class ChatViewModel @Inject constructor( // should be removed here. Use it via RetrofitChatNetwork private val chatNetworkDataSource: ChatNetworkDataSource, diff --git a/app/src/main/res/layout/out_of_office_view.xml b/app/src/main/res/layout/out_of_office_view.xml index 98c7a885f9f..ed208ee9fc0 100644 --- a/app/src/main/res/layout/out_of_office_view.xml +++ b/app/src/main/res/layout/out_of_office_view.xml @@ -5,12 +5,19 @@ ~ SPDX-FileCopyrightText: 2024 Sowjanya Kota ~ SPDX-License-Identifier: GPL-3.0-or-later --> - + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + - \ No newline at end of file + + \ No newline at end of file