diff --git a/app/src/main/kotlin/com/tutpro/baresip/CallDetailsScreen.kt b/app/src/main/kotlin/com/tutpro/baresip/CallDetailsScreen.kt index a30db930..b2cb9582 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/CallDetailsScreen.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/CallDetailsScreen.kt @@ -4,6 +4,7 @@ import android.content.Context import android.media.AudioAttributes import android.media.MediaPlayer import android.text.format.DateUtils +import android.widget.Toast import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.clickable @@ -176,6 +177,21 @@ private fun Details(ctx: Context, details: ArrayList
) { painter = painterResource(detail.direction), contentDescription = "Direction", modifier = Modifier.width(64.dp) + .clickable { + Toast.makeText(ctx, + when (detail.direction) { + R.drawable.call_down_green, + R.drawable.call_up_green-> ctx.getString(R.string.call_answered) + R.drawable.call_down_blue -> ctx.getString(R.string.call_answered_elsewhere) + R.drawable.call_missed_in, + R.drawable.call_missed_out -> ctx.getString(R.string.call_missed) + R.drawable.call_down_red, + R.drawable.call_up_red-> ctx.getString(R.string.call_rejected) + else -> "" + }, + Toast.LENGTH_SHORT + ).show() + } ) Spacer(modifier = Modifier.width(38.dp)) val durationText = startTime(detail) diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index a8c92444..bbb8b426 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -287,6 +287,10 @@ Poista käytöstä Ota käyttöön Haluatko tyhjentää tilin \'%1$s\' puheluhistorian\? + Puheluun vastattu + Puheluun vastattu muualla + Puheluun ei vastattu + Puhelu hylätty Viestiketju Viestiketju %1$s diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d7e9ed2d..a7413857 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -264,14 +264,16 @@ Playing recording … Do you want to call or send message to \'%1$s\'\? Do you want to add \'%1$s\' to contacts or delete - %2$s from call history\? - - Do you want to delete \'%1$s\' %2$s from call history\? - + %2$s from call history\? + Do you want to delete \'%1$s\' %2$s from call history\? Delete Disable Enable Do you want to delete call history of account \'%1$s\'\? + Call answered + Call answered elsewhere + Call missed + Call rejected Chat Messages Chat with %1$s @@ -300,7 +302,7 @@ List of video codecs in priority order. Drag to reorder, long click to enable or disable. Reorder - + Settings Start Automatically If checked, baresip starts automatically after device (re)start.