From c546aab7f1c95131520bf70efb7c6bf38e5b736d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Fri, 13 Oct 2023 11:35:14 +0200 Subject: [PATCH] Remove needless call for insets controller in `BrightDisplayActivity` --- .../flashlight/activities/BrightDisplayActivity.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt index 172ca33..2eaed12 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt @@ -12,7 +12,6 @@ import androidx.compose.runtime.Composable import androidx.compose.runtime.derivedStateOf import androidx.compose.runtime.getValue import androidx.compose.runtime.remember -import androidx.core.view.WindowCompat import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.lifecycle.viewModelScope @@ -61,10 +60,6 @@ class BrightDisplayActivity : ComponentActivity() { ScreenContent(colorPickerDialogState::show) } } - - if (isOreoMr1Plus()) { - WindowCompat.getInsetsController(window, window.decorView.rootView) - } } @Composable