Workaround contraint layout problem (again)

pull/190/head
M66B 5 years ago
parent fad8260005
commit f5dd4c9f44

@ -2287,10 +2287,19 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvSignedData.setVisibility(signed_data ? View.VISIBLE : View.GONE); tvSignedData.setVisibility(signed_data ? View.VISIBLE : View.GONE);
if (result instanceof Spanned) { if (result instanceof Spanned) {
tvBody.setText((Spanned) result); tvBody.post(new Runnable() {
tvBody.setTextIsSelectable(false); @Override
tvBody.setTextIsSelectable(true); public void run() {
tvBody.setMovementMethod(new TouchHandler(message)); try {
tvBody.setText((Spanned) result);
tvBody.setTextIsSelectable(false);
tvBody.setTextIsSelectable(true);
tvBody.setMovementMethod(new TouchHandler(message));
} catch (Throwable ex) {
Log.e(ex);
}
}
});
} else if (result instanceof String) } else if (result instanceof String)
((WebView) wvBody).loadDataWithBaseURL(null, (String) result, "text/html", StandardCharsets.UTF_8.name(), null); ((WebView) wvBody).loadDataWithBaseURL(null, (String) result, "text/html", StandardCharsets.UTF_8.name(), null);
else if (result == null) { else if (result == null) {

Loading…
Cancel
Save