Skip to content

Dark mode toggle fails to apply on Android 17 (API 37) #917

Description

@Zolix11

Environment details

  1. API: Maps SDK for Android
  2. Android 17 (API Level 37)
  3. Latest

Steps to reproduce

  1. Create and launch an Android 17 (API 37) emulator.
  2. Build and run the example project on this emulator.
  3. Tap the "Toggle Dark Mode" button in the sample app.
  4. Observe that the map styling does not update to reflect the dark mode theme.

Thanks!

Activity

  1. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    triage meI really want to be triaged.
    on May 21, 2026
  2. Zolix11 commented on Jun 10, 2026

    @Zolix11
    Author

    Any update ?

  3. himu-gupta commented on Jun 14, 2026

    @himu-gupta
    Contributor

    I can investigate this. The sample starts at FOLLOW_SYSTEM but the first toggle always selects DARK, so on an already-dark device the first tap produces no visible change. I plan to make the sample toggle the currently effective scheme and add focused regression coverage, while leaving the Maps SDK/Compose API unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions