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

pull/95/head
Thomas 3 years ago
parent f0c36819b7
commit 52e3598fbd

@ -760,7 +760,11 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
holder.binding.spoiler.setVisibility(View.VISIBLE);
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 {
holder.binding.spoiler.setVisibility(View.GONE);
holder.binding.spoilerExpand.setVisibility(View.GONE);

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

Loading…
Cancel
Save