From 1f698e0732f4cabd33622c0ef6d0a13959cbd5ad Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Wed, 3 Jan 2024 21:17:28 +0100 Subject: [PATCH] show post language in metadata (#4127) closes https://github.com/tuskyapp/Tusky/issues/3096 --- .../tusky/adapter/StatusDetailedViewHolder.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusDetailedViewHolder.java b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusDetailedViewHolder.java index 08145f09b7..7ac855858d 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusDetailedViewHolder.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusDetailedViewHolder.java @@ -95,6 +95,13 @@ public void onClick(@NonNull View view) { } } + String language = status.getLanguage(); + + if (language != null) { + sb.append(metadataJoiner); + sb.append(language.toUpperCase()); + } + Status.Application app = status.getApplication(); if (app != null) {