From 33a78a59a02beef5e1dbc98ac75fd115e4b2b890 Mon Sep 17 00:00:00 2001 From: Ivan Kupalov Date: Tue, 24 Sep 2019 20:33:41 +0200 Subject: [PATCH] Fix screen reader not announcing post content in some cases (#1495) --- .../com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java index 4f95f6cfb..6cbdc7d08 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java @@ -682,7 +682,7 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder { String description = context.getString(R.string.description_status, status.getUserFullName(), getContentWarningDescription(context, status), - (!status.isSensitive() || status.isExpanded() ? status.getContent() : ""), + (TextUtils.isEmpty(status.getSpoilerText()) || !status.isSensitive() || status.isExpanded() ? status.getContent() : ""), getCreatedAtDescription(status.getCreatedAt()), getReblogDescription(context, status), status.getNickname(),