Fix issue #64 - Display "Hide content <" when content is shown

This commit is contained in:
Thomas 2022-05-18 18:40:59 +02:00
parent f0c36819b7
commit 52e3598fbd
2 changed files with 6 additions and 1 deletions

View file

@ -760,7 +760,11 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
holder.binding.spoiler.setVisibility(View.VISIBLE); holder.binding.spoiler.setVisibility(View.VISIBLE);
holder.binding.spoiler.setText(statusToDeal.span_spoiler_text, TextView.BufferType.SPANNABLE); holder.binding.spoiler.setText(statusToDeal.span_spoiler_text, TextView.BufferType.SPANNABLE);
} }
if (statusToDeal.isExpended) {
holder.binding.spoilerExpand.setText(context.getString(R.string.hide_content));
} else {
holder.binding.spoilerExpand.setText(context.getString(R.string.show_content));
}
} else { } else {
holder.binding.spoiler.setVisibility(View.GONE); holder.binding.spoiler.setVisibility(View.GONE);
holder.binding.spoilerExpand.setVisibility(View.GONE); holder.binding.spoilerExpand.setVisibility(View.GONE);

View file

@ -1267,6 +1267,7 @@
<string name="instance_health_checkedat">Checked at: %s</string> <string name="instance_health_checkedat">Checked at: %s</string>
<string name="instance_health_uptime">Uptime: %,.2f %%</string> <string name="instance_health_uptime">Uptime: %,.2f %%</string>
<string name="show_content"><![CDATA[Show content >]]></string> <string name="show_content"><![CDATA[Show content >]]></string>
<string name="hide_content"><![CDATA[Hide content <]]></string>
<string name="stop_recording">Stop recording</string> <string name="stop_recording">Stop recording</string>