Aperture: Remove unnecessary `?: return`
WindowCompat's getInsetsController() can't return null.
Change-Id: I2911c559dd07b8ed9ab5b63f0cd19600fed8ba9d
diff --git a/app/src/main/java/org/lineageos/aperture/MainActivity.kt b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
index 0bdc97b..51e74bc 100644
--- a/app/src/main/java/org/lineageos/aperture/MainActivity.kt
+++ b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
@@ -1039,7 +1039,7 @@
}
private fun hideStatusBars() {
- val windowInsetsController = getInsetsController(window, window.decorView) ?: return
+ val windowInsetsController = getInsetsController(window, window.decorView)
// Configure the behavior of the hidden system bars
windowInsetsController.systemBarsBehavior =
WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE