Reverting change to activate RTL given some characters, it was picking up some english chars
This commit is contained in:
@@ -133,7 +133,9 @@ fun RichTextViewer(
|
|||||||
// FlowRow doesn't work well with paragraphs. So we need to split them
|
// FlowRow doesn't work well with paragraphs. So we need to split them
|
||||||
content.split('\n').forEach { paragraph ->
|
content.split('\n').forEach { paragraph ->
|
||||||
FlowRow() {
|
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 ->
|
s.forEach { word: String ->
|
||||||
if (canPreview) {
|
if (canPreview) {
|
||||||
// Explicit URL
|
// Explicit URL
|
||||||
|
|||||||
Reference in New Issue
Block a user