mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 09:25:45 +00:00
fix: deprecating warning for getLayoutDirection and LAYOUT_DIRECTION_LTR
This commit is contained in:
parent
7fa40791c6
commit
4c66f6aceb
1 changed files with 1 additions and 1 deletions
|
@ -1234,7 +1234,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
|||
val cutInsets: Insets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
|
||||
var left = 0
|
||||
var right = 0
|
||||
if (ViewCompat.getLayoutDirection(v) == ViewCompat.LAYOUT_DIRECTION_LTR) {
|
||||
if (v.layoutDirection == View.LAYOUT_DIRECTION_LTR) {
|
||||
left = cutInsets.left
|
||||
} else {
|
||||
right = cutInsets.right
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue