Improve strings for encrypted and unencrypted WebXDC

This commit is contained in:
12aw 2024-03-06 16:30:10 +01:00
parent 6fba8f07b4
commit f5b82a7722
3 changed files with 17 additions and 15 deletions
git/release
src/main
java/eu/siacs/conversations/ui/adapter
res/values

View file

@ -15,19 +15,6 @@
"versionName": "1.7.9.3",
"outputFile": "monocles chat-1.7.9.3-git-universal-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "arm64-v8a"
}
],
"attributes": [],
"versionCode": 16404,
"versionName": "1.7.9.3",
"outputFile": "monocles chat-1.7.9.3-git-arm64-v8a-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
@ -54,6 +41,19 @@
"versionName": "1.7.9.3",
"outputFile": "monocles chat-1.7.9.3-git-x86_64-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "arm64-v8a"
}
],
"attributes": [],
"versionCode": 16404,
"versionName": "1.7.9.3",
"outputFile": "monocles chat-1.7.9.3-git-arm64-v8a-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [

View file

@ -913,7 +913,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
viewHolder.image.setVisibility(GONE);
viewHolder.audioPlayer.setVisibility(GONE);
viewHolder.download_button.setVisibility(View.VISIBLE);
viewHolder.download_button.setText("Open " + webxdc.getName());
viewHolder.download_button.setText(activity.getResources().getString(R.string.open) + " " + webxdc.getName() + " " + "(" + activity.getResources().getString(R.string.unencrypted) + ")");
viewHolder.download_button.setOnClickListener(v -> {
Conversation conversation = (Conversation) message.getConversation();
if (!conversation.switchToSession("webxdc\0" + message.getUuid())) {

View file

@ -1422,5 +1422,7 @@
<string name="new_message">New message</string>
<string name="emojis">Emojis</string>
<string name="stickers">Stickers</string>
<string name="webxdc_hint">Activate threads feature, disable OMEMO and send again</string>
<string name="webxdc_hint">To use WebXDC activate threads feature and send WebXDC unencrypted</string>
<string name="open">Open</string>
<string name="unencrypted">unencrypted</string>
</resources>