Skip to content

Commit

Permalink
chore: simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Nov 10, 2024
1 parent 94ad28b commit fd91181
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion android/src/main/java/com/lodev09/truesheet/core/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd91181

Please sign in to comment.