mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-07 06:39:45 +00:00
use proper naming
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
f7f73136d8
commit
083f0de063
@ -1080,15 +1080,16 @@ class ChatActivity :
|
||||
}
|
||||
is ChatViewModel.OutOfOfficeUIState.Success -> {
|
||||
binding.outOfOfficeContainer.visibility = View.VISIBLE
|
||||
binding.outOfOfficeContainer.findViewById<TextView>(R.id.status).text = String.format(
|
||||
binding.outOfOfficeContainer.findViewById<TextView>(R.id.userAbsenceShortMessage).text = String.format(
|
||||
context.resources.getString(R.string.user_absence),
|
||||
uiState.userAbsence.userId
|
||||
)
|
||||
binding.outOfOfficeContainer.findViewById<TextView>(R.id.replacement).text = String.format(
|
||||
context.resources.getString(R.string.user_absence_replacement),
|
||||
uiState.userAbsence.replacementUserDisplayName
|
||||
)
|
||||
binding.outOfOfficeContainer.findViewById<TextView>(R.id.message).text = uiState.userAbsence.message
|
||||
binding.outOfOfficeContainer.findViewById<TextView>(R.id.absenceReplacement).text = String.format(
|
||||
context.resources.getString(R.string.user_absence_replacement),
|
||||
uiState.userAbsence.replacementUserDisplayName
|
||||
)
|
||||
|
||||
binding.outOfOfficeContainer.findViewById<TextView>(R.id.userAbsenceLongMessage).text = uiState.userAbsence.message
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
app:cornerRadius="8dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/status"
|
||||
android:id="@+id/userAbsenceShortMessage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#FFFFFF"
|
||||
@ -32,7 +32,7 @@
|
||||
tools:text="Jane is out of office"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/replacement"
|
||||
android:id="@+id/absenceReplacement"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
@ -42,7 +42,7 @@
|
||||
tools:text="Replacement: Bob"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
android:id="@+id/userAbsenceLongMessage"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
|
Loading…
Reference in New Issue
Block a user