Prevent crash

pull/194/merge
M66B 3 years ago
parent d4fe78781d
commit d9f76a2b79

@ -2406,7 +2406,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
webView.setMinimumHeight(height);
int maxHeight = rv.getHeight() - rv.getPaddingTop();
int maxHeight = (rv == null ? 0 : rv.getHeight() - rv.getPaddingTop());
webView.init(height, maxHeight, size, position, force_light,
new WebViewEx.IWebView() {
@Override

Loading…
Cancel
Save