Update app/src/main/java/org/thoughtcrime/securesms/calls/WebRtcCallActivity.kt

Co-authored-by: Andrew <andrewgallasch@gmail.com>
This commit is contained in:
ThomasSession 2024-07-17 15:06:00 +10:00 committed by GitHub
parent c0fd2eb937
commit 400db3b37e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -433,14 +433,9 @@ class WebRtcCallActivity : PassphraseRequiredActionBarActivity() {
* Shows the avatar image.
* If @showUserAvatar is true, the user's avatar is shown, otherwise the contact's avatar is shown.
*/
private fun showAvatar(showUserAvatar: Boolean){
if(showUserAvatar){
binding.userAvatar.isVisible = true
binding.contactAvatar.isVisible = false
} else {
binding.userAvatar.isVisible = false
binding.contactAvatar.isVisible = true
}
private fun showAvatar(showUserAvatar: Boolean) {
binding.userAvatar.isVisible = showUserAvatar
binding.contactAvatar.isVisible = !showUserAvatar
}
private fun hideAvatar(){