Title
Remove deprecated statusBarColor usage (edge-to-edge already enabled)
Description
Hi team,
The basic-android-kotlin-compose-training-lemonade project is already using the modern edge-to-edge approach, so the explicit use of the deprecated
window.statusBarColor API in Theme.kt is no longer necessary.
Current Issue
- Project: basic-android-kotlin-compose-training-lemonade
- File:
app/src/main/java/com/example/lemonade/ui/theme/Theme.kt
- Uses deprecated API:
window.statusBarColor
- Triggers Android Studio deprecation warnings
- Redundant since edge-to-edge handling is already in place
Proposed Change
- Remove the deprecated
window.statusBarColor call from Theme.kt
- Keep existing edge-to-edge behavior unchanged
- Preserve proper status bar icon appearance (light/dark)
No new edge-to-edge setup is required, as the project already follows the modern approach.
Benefits
- Eliminates deprecation warnings
- Keeps the codebase clean and future-proof
- Aligns with current Android & Material 3 guidelines
- Improves code quality for learners using this sample
I have signed the CLA and would be happy to work on this cleanup if the maintainers agree this is a welcome change.
Thank you for your time!
Title
Remove deprecated
statusBarColorusage (edge-to-edge already enabled)Description
Hi team,
The basic-android-kotlin-compose-training-lemonade project is already using the modern edge-to-edge approach, so the explicit use of the deprecated
window.statusBarColorAPI inTheme.ktis no longer necessary.Current Issue
app/src/main/java/com/example/lemonade/ui/theme/Theme.ktwindow.statusBarColorProposed Change
window.statusBarColorcall fromTheme.ktBenefits
I have signed the CLA and would be happy to work on this cleanup if the maintainers agree this is a welcome change.
Thank you for your time!