Enable accessible clickable span support

pull/217/head
M66B 5 months ago
parent 68773944b6
commit 4984684531

@ -120,6 +120,7 @@ import androidx.core.content.pm.ShortcutInfoCompat;
import androidx.core.graphics.ColorUtils; import androidx.core.graphics.ColorUtils;
import androidx.core.text.method.LinkMovementMethodCompat; import androidx.core.text.method.LinkMovementMethodCompat;
import androidx.core.view.MenuCompat; import androidx.core.view.MenuCompat;
import androidx.core.view.ViewCompat;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction; import androidx.fragment.app.FragmentTransaction;
@ -985,6 +986,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
tvBody.setBreakStrategy(LineBreaker.BREAK_STRATEGY_HIGH_QUALITY); tvBody.setBreakStrategy(LineBreaker.BREAK_STRATEGY_HIGH_QUALITY);
} }
ViewCompat.enableAccessibleClickableSpanSupport(tvBody);
wvBody = vsBody.findViewById(R.id.wvBody); wvBody = vsBody.findViewById(R.id.wvBody);
pbBody = vsBody.findViewById(R.id.pbBody); pbBody = vsBody.findViewById(R.id.pbBody);
vwRipple = vsBody.findViewById(R.id.vwRipple); vwRipple = vsBody.findViewById(R.id.vwRipple);

Loading…
Cancel
Save