Workaround layout bug

pull/147/head
M66B 6 years ago
parent 1dfc765dd1
commit c1d810c9e0

@ -596,7 +596,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
Spanned body = properties.getBody(message.id); Spanned body = properties.getBody(message.id);
tvBody.setText(body); tvBody.setText(body);
tvBody.setMovementMethod(new UrlHandler()); tvBody.setMovementMethod(null);
if (internet || message.content) if (internet || message.content)
pbBody.setVisibility(View.VISIBLE); pbBody.setVisibility(View.VISIBLE);
else else
@ -1070,6 +1070,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvBody.setMovementMethod(new UrlHandler()); tvBody.setMovementMethod(new UrlHandler());
pbBody.setVisibility(View.GONE); pbBody.setVisibility(View.GONE);
properties.setBody(message.id, body); properties.setBody(message.id, body);
} }
@Override @Override

Loading…
Cancel
Save