Skip to content

Commit

Permalink
[skip ci] fix(layout): Manga RTL fix (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadwhy authored Nov 17, 2024
1 parent 90c6c08 commit 3d4f5aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/src/main/java/ani/dantotsu/themes/ThemeManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import android.graphics.Bitmap
import android.os.Build
import android.view.Window
import android.view.WindowManager
import android.view.View
import ani.dantotsu.R
import ani.dantotsu.settings.saving.PrefManager
import ani.dantotsu.settings.saving.PrefName
Expand Down Expand Up @@ -62,6 +63,7 @@ class ThemeManager(private val context: Activity) {
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS)
window.statusBarColor = 0x00000000
context.setTheme(themeToApply)
window.decorView.layoutDirection = View.LAYOUT_DIRECTION_LTR
}

fun setWindowFlag(activity: Activity, bits: Int, on: Boolean) {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/style.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
<item name="android:windowIsFloating">true</item>
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="android:layoutDirection">ltr</item>
</style>

<style name="HeadingText">
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<item name="elevationOverlayEnabled">false</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:layoutDirection">ltr</item>
<item name="android:windowContentTransitions">true</item>
<item name="android:fontFamily">@font/poppins</item>
<item name="shapeAppearanceLargeComponent">@style/ShapeAppearanceOverlay.Demo</item>
Expand Down

0 comments on commit 3d4f5aa

Please # to comment.