mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix issue #64 - Display "Hide content <" when content is shown
This commit is contained in:
parent
f0c36819b7
commit
52e3598fbd
2 changed files with 6 additions and 1 deletions
|
@ -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…
Reference in a new issue