Merge pull request #461 from MasoudFallahpour/patch-1

Make functions 'shouldUseDarkTheme' and 'shouldUseAndroidTheme' private
pull/466/head
Don Turner 2 years ago committed by GitHub
commit a01e0b1344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -131,7 +131,7 @@ class MainActivity : ComponentActivity() {
* Returns `true` if the Android theme should be used, as a function of the [uiState].
*/
@Composable
fun shouldUseAndroidTheme(
private fun shouldUseAndroidTheme(
uiState: MainActivityUiState,
): Boolean = when (uiState) {
Loading -> false
@ -146,7 +146,7 @@ fun shouldUseAndroidTheme(
* current system context.
*/
@Composable
fun shouldUseDarkTheme(
private fun shouldUseDarkTheme(
uiState: MainActivityUiState,
): Boolean = when (uiState) {
Loading -> isSystemInDarkTheme()

Loading…
Cancel
Save