Skip to content

Remove deprecated statusBarColor usage (edge-to-edge already enabled) #65

@Thogaruchesti-hemanth

Description

@Thogaruchesti-hemanth

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!


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions