Added toasts to call details direction icons
This commit is contained in:
@ -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<Details>) {
|
||||
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)
|
||||
|
||||
@ -287,6 +287,10 @@
|
||||
<string name="disable_history">Poista käytöstä</string>
|
||||
<string name="enable_history">Ota käyttöön</string>
|
||||
<string name="delete_history_alert">Haluatko tyhjentää tilin \'%1$s\' puheluhistorian\?</string>
|
||||
<string name="call_answered">Puheluun vastattu</string>
|
||||
<string name="call_answered_elsewhere">Puheluun vastattu muualla</string>
|
||||
<string name="call_missed">Puheluun ei vastattu</string>
|
||||
<string name="call_rejected">Puhelu hylätty</string>
|
||||
<!-- Chat Activity -->
|
||||
<string name="chat">Viestiketju</string>
|
||||
<string name="chat_with">Viestiketju %1$s</string>
|
||||
|
||||
@ -264,14 +264,16 @@
|
||||
<string name="playing_recording">Playing recording …</string>
|
||||
<string name="calls_call_message_question">Do you want to call or send message to \'%1$s\'\?</string>
|
||||
<string name="calls_add_delete_question">Do you want to add \'%1$s\' to contacts or delete
|
||||
%2$s from call history\?
|
||||
</string>
|
||||
<string name="calls_delete_question">Do you want to delete \'%1$s\' %2$s from call history\?
|
||||
</string>
|
||||
%2$s from call history\?</string>
|
||||
<string name="calls_delete_question">Do you want to delete \'%1$s\' %2$s from call history\?</string>
|
||||
<string name="delete_history">Delete</string>
|
||||
<string name="disable_history">Disable</string>
|
||||
<string name="enable_history">Enable</string>
|
||||
<string name="delete_history_alert">Do you want to delete call history of account \'%1$s\'\?</string>
|
||||
<string name="call_answered">Call answered</string>
|
||||
<string name="call_answered_elsewhere">Call answered elsewhere</string>
|
||||
<string name="call_missed">Call missed</string>
|
||||
<string name="call_rejected">Call rejected</string>
|
||||
<!-- Chat Activity -->
|
||||
<string name="chat">Chat Messages</string>
|
||||
<string name="chat_with">Chat with %1$s</string>
|
||||
@ -300,7 +302,7 @@
|
||||
<string name="video_codecs_help">List of video codecs in priority order. Drag to reorder,
|
||||
long click to enable or disable.</string>
|
||||
<string name="codec_action">Reorder</string>
|
||||
<!-- Config Activity -->
|
||||
<!-- Settings Activity -->
|
||||
<string name="configuration">Settings</string>
|
||||
<string name="start_automatically">Start Automatically</string>
|
||||
<string name="start_automatically_help">If checked, baresip starts automatically after device (re)start.</string>
|
||||
|
||||
Reference in New Issue
Block a user