Skip to content

Commit

Permalink
Fix default layout being incorrectly displayed in RTL languages
Browse files Browse the repository at this point in the history
rafaelvcaetano committed Aug 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8b8e7d3 commit 5a45d2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/me/magnum/melonds/ui/common/LayoutView.kt
Original file line number Diff line number Diff line change
@@ -18,6 +18,10 @@ open class LayoutView(context: Context, attrs: AttributeSet?) : FrameLayout(cont
protected lateinit var viewBuilderFactory: LayoutComponentViewBuilderFactory
protected val views = mutableMapOf<LayoutComponent, LayoutComponentView>()

init {
layoutDirection = LAYOUT_DIRECTION_LTR
}

fun setLayoutComponentViewBuilderFactory(factory: LayoutComponentViewBuilderFactory) {
viewBuilderFactory = factory
}

0 comments on commit 5a45d2c

Please sign in to comment.