From 15d4782aa638e27d627befb6529bf19b9fd3f12e Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 15 Jul 2024 17:04:17 +0200 Subject: [PATCH] When PiP is supported, use Back for top left icon instead of Close. #3197 --- .../io/element/android/features/call/impl/ui/CallScreenView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/CallScreenView.kt b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/CallScreenView.kt index c8d202f8cc..71e6fd0e7b 100644 --- a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/CallScreenView.kt +++ b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/ui/CallScreenView.kt @@ -81,7 +81,7 @@ internal fun CallScreenView( title = { Text(stringResource(R.string.element_call)) }, navigationIcon = { BackButton( - imageVector = CompoundIcons.Close(), + imageVector = if (pipState.supportPip) CompoundIcons.ArrowLeft() else CompoundIcons.Close(), onClick = ::handleBack, ) }