Skip to content

Commit c546aab

Browse files
committed
Remove needless call for insets controller in BrightDisplayActivity
1 parent cef9f6e commit c546aab

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import androidx.compose.runtime.Composable
1212
import androidx.compose.runtime.derivedStateOf
1313
import androidx.compose.runtime.getValue
1414
import androidx.compose.runtime.remember
15-
import androidx.core.view.WindowCompat
1615
import androidx.lifecycle.AndroidViewModel
1716
import androidx.lifecycle.compose.collectAsStateWithLifecycle
1817
import androidx.lifecycle.viewModelScope
@@ -61,10 +60,6 @@ class BrightDisplayActivity : ComponentActivity() {
6160
ScreenContent(colorPickerDialogState::show)
6261
}
6362
}
64-
65-
if (isOreoMr1Plus()) {
66-
WindowCompat.getInsetsController(window, window.decorView.rootView)
67-
}
6863
}
6964

7065
@Composable

0 commit comments

Comments
 (0)