From 0f84af5b3235e2b8b276d22928a02433c414e1b3 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Sun, 2 Feb 2025 18:52:31 +0100 Subject: [PATCH] adapt empty-hint also for 'files' --- .../thoughtcrime/securesms/ProfileDocumentsFragment.java | 8 +++++++- src/main/res/values/strings.xml | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/thoughtcrime/securesms/ProfileDocumentsFragment.java b/src/main/java/org/thoughtcrime/securesms/ProfileDocumentsFragment.java index 1b4a14f2b..920443057 100644 --- a/src/main/java/org/thoughtcrime/securesms/ProfileDocumentsFragment.java +++ b/src/main/java/org/thoughtcrime/securesms/ProfileDocumentsFragment.java @@ -121,7 +121,13 @@ public class ProfileDocumentsFragment noMedia.setVisibility(recyclerView.getAdapter().getItemCount() > 0 ? View.GONE : View.VISIBLE); if (chatId == DC_CHAT_NO_CHAT) { - noMedia.setText(showWebxdc ? R.string.all_apps_empty_hint : R.string.tab_all_media_empty_hint); + if (showWebxdc) { + noMedia.setText(R.string.all_apps_empty_hint); + } else if (!showAudio){ + noMedia.setText(R.string.all_files_empty_hint); + } else { + noMedia.setText(R.string.tab_all_media_empty_hint); + } } else if (showAudio) { noMedia.setText(R.string.tab_audio_empty_hint); } else if (showWebxdc) { diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 282c4ea24..e71d4a346 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -514,6 +514,7 @@ Audio files and voice messages shared in this chat will appear here. Apps shared in this chat will appear here. Media shared in any chat will appear here. + Documents and other files shared in any chat will appear here. Apps received or sent in any chat will appear here. Media Preview