|
|
@ -1952,20 +1952,19 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
tvNoInternetBody.setVisibility(suitable || content ? View.GONE : View.VISIBLE);
|
|
|
|
tvNoInternetBody.setVisibility(suitable || content ? View.GONE : View.VISIBLE);
|
|
|
|
grpDownloading.setVisibility(content ? View.GONE : View.VISIBLE);
|
|
|
|
grpDownloading.setVisibility(content ? View.GONE : View.VISIBLE);
|
|
|
|
|
|
|
|
|
|
|
|
int height = properties.getHeight(message.id, 0);
|
|
|
|
boolean show_full = properties.getValue("full", message.id);
|
|
|
|
if (height == 0) {
|
|
|
|
if (show_full)
|
|
|
|
tvBody.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
wvBody.setVisibility(View.GONE);
|
|
|
|
wvBody.setVisibility(View.GONE);
|
|
|
|
} else {
|
|
|
|
else {
|
|
|
|
boolean show_full = properties.getValue("full", message.id);
|
|
|
|
int height = properties.getHeight(message.id, 0);
|
|
|
|
if (show_full) {
|
|
|
|
if (height == 0)
|
|
|
|
wvBody.setVisibility(View.INVISIBLE);
|
|
|
|
tvBody.setVisibility(View.GONE);
|
|
|
|
wvBody.setMinimumHeight(height);
|
|
|
|
else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
tvBody.setVisibility(View.INVISIBLE);
|
|
|
|
tvBody.setVisibility(View.INVISIBLE);
|
|
|
|
tvBody.setMinHeight(height);
|
|
|
|
tvBody.setMinHeight(height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
vwRipple.setVisibility(View.GONE);
|
|
|
|
vwRipple.setVisibility(View.GONE);
|
|
|
|
pbBody.setVisibility(View.GONE);
|
|
|
|
pbBody.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
|
|
|
@ -2572,7 +2571,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
wvBody = webView;
|
|
|
|
wvBody = webView;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
webView.setMinimumHeight(height);
|
|
|
|
webView.setMinimumHeight(dp60);
|
|
|
|
|
|
|
|
|
|
|
|
int maxHeight = (rv == null ? 0 : rv.getHeight() - rv.getPaddingTop());
|
|
|
|
int maxHeight = (rv == null ? 0 : rv.getHeight() - rv.getPaddingTop());
|
|
|
|
webView.init(height, maxHeight, size, position, force_light,
|
|
|
|
webView.init(height, maxHeight, size, position, force_light,
|
|
|
|