Reverting change to activate RTL given some characters, it was picking up some english chars

This commit is contained in:
Vitor Pamplona
2023-03-03 18:11:50 -05:00
parent 8627fd4b4c
commit 5f98a54452
@@ -133,7 +133,9 @@ fun RichTextViewer(
// FlowRow doesn't work well with paragraphs. So we need to split them
content.split('\n').forEach { paragraph ->
FlowRow() {
val s = if (isArabic(paragraph)) paragraph.split(' ').reversed() else paragraph.split(' ');
// Did not work: if (isArabic(paragraph)) paragraph.split(' ').reversed() else
// English is not Right side
val s = paragraph.split(' ');
s.forEach { word: String ->
if (canPreview) {
// Explicit URL