From 5a45d2cd9949b94227207851c4877047338e7ca6 Mon Sep 17 00:00:00 2001 From: Rafael Caetano Date: Sat, 17 Aug 2024 15:38:52 +0100 Subject: [PATCH] Fix default layout being incorrectly displayed in RTL languages --- app/src/main/java/me/magnum/melonds/ui/common/LayoutView.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/me/magnum/melonds/ui/common/LayoutView.kt b/app/src/main/java/me/magnum/melonds/ui/common/LayoutView.kt index c3bebad..a4d81fc 100644 --- a/app/src/main/java/me/magnum/melonds/ui/common/LayoutView.kt +++ b/app/src/main/java/me/magnum/melonds/ui/common/LayoutView.kt @@ -18,6 +18,10 @@ open class LayoutView(context: Context, attrs: AttributeSet?) : FrameLayout(cont protected lateinit var viewBuilderFactory: LayoutComponentViewBuilderFactory protected val views = mutableMapOf() + init { + layoutDirection = LAYOUT_DIRECTION_LTR + } + fun setLayoutComponentViewBuilderFactory(factory: LayoutComponentViewBuilderFactory) { viewBuilderFactory = factory }