diff --git a/app/src/main/java/com/google/android/samples/socialite/MainActivity.kt b/app/src/main/java/com/google/android/samples/socialite/MainActivity.kt index b1c22230..8dca7ce2 100644 --- a/app/src/main/java/com/google/android/samples/socialite/MainActivity.kt +++ b/app/src/main/java/com/google/android/samples/socialite/MainActivity.kt @@ -22,7 +22,6 @@ import android.os.Bundle import android.view.WindowInsetsController import androidx.activity.ComponentActivity import androidx.activity.compose.setContent -import androidx.activity.enableEdgeToEdge import androidx.compose.foundation.isSystemInDarkTheme import androidx.core.content.pm.ShortcutManagerCompat import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen @@ -36,7 +35,6 @@ class MainActivity : ComponentActivity() { installSplashScreen() super.onCreate(savedInstanceState) setContent { - // setSystemBarAppearance can be removed after calling enableEdgeToEdge() setSystemBarAppearance(isSystemInDarkTheme()) @@ -55,16 +53,17 @@ class MainActivity : ComponentActivity() { return ShortcutParams(shortcutId, text) } - private fun setSystemBarAppearance(isSystemInDarkTheme : Boolean) { + private fun setSystemBarAppearance(isSystemInDarkTheme: Boolean) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { if (isSystemInDarkTheme) { window?.insetsController?.setSystemBarsAppearance( - 0, WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS + 0, + WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS, ) } else { window?.insetsController?.setSystemBarsAppearance( WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS, - WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS + WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS, ) } } diff --git a/app/src/main/java/com/google/android/samples/socialite/ui/Main.kt b/app/src/main/java/com/google/android/samples/socialite/ui/Main.kt index 8f9a886e..7cd7e274 100644 --- a/app/src/main/java/com/google/android/samples/socialite/ui/Main.kt +++ b/app/src/main/java/com/google/android/samples/socialite/ui/Main.kt @@ -20,14 +20,11 @@ import android.app.Activity import android.content.Intent import android.content.pm.ActivityInfo import android.os.Bundle -import androidx.compose.animation.core.CubicBezierEasing import androidx.compose.animation.core.FastOutLinearInEasing import androidx.compose.animation.core.FastOutSlowInEasing import androidx.compose.animation.core.tween import androidx.compose.animation.fadeIn import androidx.compose.animation.fadeOut -import androidx.compose.animation.scaleIn -import androidx.compose.animation.scaleOut import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier