Fix screen reader not announcing post content in some cases (#1495)

This commit is contained in:
Ivan Kupalov 2019-09-24 20:33:41 +02:00 committed by Konrad Pozniak
parent a9440ea2ab
commit 33a78a59a0
1 changed files with 1 additions and 1 deletions

View File

@ -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(),