Remove needless call for insets controller in `BrightDisplayActivity`
This commit is contained in:
parent
cef9f6e62b
commit
c546aab7f1
|
@ -12,7 +12,6 @@ import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.derivedStateOf
|
import androidx.compose.runtime.derivedStateOf
|
||||||
import androidx.compose.runtime.getValue
|
import androidx.compose.runtime.getValue
|
||||||
import androidx.compose.runtime.remember
|
import androidx.compose.runtime.remember
|
||||||
import androidx.core.view.WindowCompat
|
|
||||||
import androidx.lifecycle.AndroidViewModel
|
import androidx.lifecycle.AndroidViewModel
|
||||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||||
import androidx.lifecycle.viewModelScope
|
import androidx.lifecycle.viewModelScope
|
||||||
|
@ -61,10 +60,6 @@ class BrightDisplayActivity : ComponentActivity() {
|
||||||
ScreenContent(colorPickerDialogState::show)
|
ScreenContent(colorPickerDialogState::show)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isOreoMr1Plus()) {
|
|
||||||
WindowCompat.getInsetsController(window, window.decorView.rootView)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|
Loading…
Reference in New Issue