Fixed display issue

This commit is contained in:
M66B 2020-04-19 08:25:36 +02:00
parent a2b8feb836
commit 9936655830
1 changed files with 4 additions and 2 deletions

View File

@ -1490,16 +1490,18 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
int height = properties.getHeight(message.id, 0); int height = properties.getHeight(message.id, 0);
if (height == 0) { if (height == 0) {
tvBody.setMinHeight(0);
tvBody.setVisibility(View.GONE); tvBody.setVisibility(View.GONE);
wvBody.setMinimumHeight(0);
wvBody.setVisibility(View.GONE); wvBody.setVisibility(View.GONE);
} else { } else {
boolean show_full = properties.getValue("full", message.id); boolean show_full = properties.getValue("full", message.id);
if (show_full) { if (show_full) {
wvBody.setVisibility(View.INVISIBLE);
wvBody.setMinimumHeight(height); wvBody.setMinimumHeight(height);
wvBody.setVisibility(View.INVISIBLE);
} else { } else {
tvBody.setVisibility(View.INVISIBLE);
tvBody.setMinHeight(height); tvBody.setMinHeight(height);
tvBody.setVisibility(View.INVISIBLE);
} }
} }
pbBody.setVisibility(View.GONE); pbBody.setVisibility(View.GONE);