summaryrefslogtreecommitdiffstats
path: root/src/android/app
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-05-16 21:09:31 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:06:02 +0200
commitc930b2bad2152dd8815a4b5114ddbd352c0200c0 (patch)
tree1e127b8a205f8c0820949e145572accaf2fdcfab /src/android/app
parentandroid: Button to reset all settings (diff)
downloadyuzu-c930b2bad2152dd8815a4b5114ddbd352c0200c0.tar
yuzu-c930b2bad2152dd8815a4b5114ddbd352c0200c0.tar.gz
yuzu-c930b2bad2152dd8815a4b5114ddbd352c0200c0.tar.bz2
yuzu-c930b2bad2152dd8815a4b5114ddbd352c0200c0.tar.lz
yuzu-c930b2bad2152dd8815a4b5114ddbd352c0200c0.tar.xz
yuzu-c930b2bad2152dd8815a4b5114ddbd352c0200c0.tar.zst
yuzu-c930b2bad2152dd8815a4b5114ddbd352c0200c0.zip
Diffstat (limited to 'src/android/app')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt
index 13b8315db..153622072 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt
@@ -278,12 +278,13 @@ class SetupFragment : Fragment() {
private fun setInsets() =
ViewCompat.setOnApplyWindowInsetsListener(binding.root) { view: View, windowInsets: WindowInsetsCompat ->
- val insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ val barInsets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
+ val cutoutInsets = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout())
view.setPadding(
- insets.left,
- insets.top,
- insets.right,
- insets.bottom
+ barInsets.left + cutoutInsets.left,
+ barInsets.top + cutoutInsets.top,
+ barInsets.right + cutoutInsets.right,
+ barInsets.bottom + cutoutInsets.bottom
)
windowInsets
}