From fd911817c49e30ca2f5a9707406201df0e7b0a37 Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Sun, 10 Nov 2024 23:31:58 +0100 Subject: [PATCH] chore: simplify condition --- android/src/main/java/com/lodev09/truesheet/TrueSheetDialog.kt | 2 +- android/src/main/java/com/lodev09/truesheet/core/Utils.kt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/android/src/main/java/com/lodev09/truesheet/TrueSheetDialog.kt b/android/src/main/java/com/lodev09/truesheet/TrueSheetDialog.kt index 2115974..09fe88e 100644 --- a/android/src/main/java/com/lodev09/truesheet/TrueSheetDialog.kt +++ b/android/src/main/java/com/lodev09/truesheet/TrueSheetDialog.kt @@ -71,7 +71,7 @@ class TrueSheetDialog(private val reactContext: ThemedReactContext, private val } override fun getEdgeToEdgeEnabled(): Boolean { - return if (Utils.EDGE_TO_EDGE) true else super.getEdgeToEdgeEnabled() + return Utils.EDGE_TO_EDGE || super.getEdgeToEdgeEnabled() } override fun onStart() { diff --git a/android/src/main/java/com/lodev09/truesheet/core/Utils.kt b/android/src/main/java/com/lodev09/truesheet/core/Utils.kt index 5317041..14039d6 100644 --- a/android/src/main/java/com/lodev09/truesheet/core/Utils.kt +++ b/android/src/main/java/com/lodev09/truesheet/core/Utils.kt @@ -37,7 +37,6 @@ object Utils { } val screenHeight = displayMetrics.heightPixels - val statusBarHeight = getIdentifierHeight(context, "status_bar_height") val hasNavigationBar = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { context.getSystemService(WindowManager::class.java)