more detailed call strings

This commit is contained in:
B. Petersen
2026-02-05 21:40:38 +01:00
committed by biörn
parent 2704749b44
commit 9ffc904ae5
3 changed files with 13 additions and 3 deletions
@@ -67,8 +67,10 @@ public class CallItemView extends FrameLayout {
title.setText(R.string.canceled_call);
} else if (callInfo.state instanceof CallState.Declined) {
title.setText(R.string.declined_call);
} else if (callInfo.hasVideo) {
title.setText(isOutgoing? R.string.outgoing_video_call : R.string.incoming_video_call);
} else {
title.setText(isOutgoing? R.string.outgoing_call : R.string.incoming_call);
title.setText(isOutgoing? R.string.outgoing_audio_call : R.string.incoming_audio_call);
}
icon.setImageResource(callInfo.hasVideo? R.drawable.ic_videocam_white_24dp : R.drawable.baseline_call_24);
@@ -210,8 +210,6 @@ public class DcHelper {
dcContext.setStockTranslation(178, context.getString(R.string.member_x_removed));
dcContext.setStockTranslation(190, context.getString(R.string.secure_join_wait));
dcContext.setStockTranslation(193, context.getString(R.string.donate_device_msg));
dcContext.setStockTranslation(194, context.getString(R.string.outgoing_call));
dcContext.setStockTranslation(195, context.getString(R.string.incoming_call));
dcContext.setStockTranslation(196, context.getString(R.string.declined_call));
dcContext.setStockTranslation(197, context.getString(R.string.canceled_call));
dcContext.setStockTranslation(198, context.getString(R.string.missed_call));
@@ -223,6 +221,10 @@ public class DcHelper {
dcContext.setStockTranslation(220, context.getString(R.string.proxy_enabled));
dcContext.setStockTranslation(221, context.getString(R.string.proxy_enabled_hint));
dcContext.setStockTranslation(230, context.getString(R.string.chat_unencrypted_explanation));
dcContext.setStockTranslation(232, context.getString(R.string.outgoing_audio_call));
dcContext.setStockTranslation(233, context.getString(R.string.outgoing_video_call));
dcContext.setStockTranslation(234, context.getString(R.string.incoming_audio_call));
dcContext.setStockTranslation(235, context.getString(R.string.incoming_video_call));
}
public static File getImexDir() {
+6
View File
@@ -386,8 +386,14 @@
<string name="answer_call">Answer</string>
<!-- the action "to decline" a call, not: "the decline" -->
<string name="end_call">Decline</string>
<!-- deprecated, use outgoing_audio_call or outgoing_video_call instead -->
<string name="outgoing_call">Outgoing call</string>
<string name="outgoing_audio_call">Outgoing audio call</string>
<string name="outgoing_video_call">Outgoing video call</string>
<!-- deprecated, use incoming_audio_call or incoming_video_call instead -->
<string name="incoming_call">Incoming call</string>
<string name="incoming_audio_call">Incoming audio call</string>
<string name="incoming_video_call">Incoming video call</string>
<string name="declined_call">Declined call</string>
<string name="canceled_call">Canceled call</string>
<string name="missed_call">Missed call</string>