Skip to content

play-services-oss-licenses:17.4.0 doesn't apply custom theme #374

@alecarnevale

Description

@alecarnevale

Describe the bug
Following the documentation on how to apply a custom theme for OssLicensesMenuActivity (v2) is not working.
Regardless of android:windowBackground set in the custom theme, OssLicensesMenuActivity will always render the default Material3 background color (soft pink, #FEF7FF).

To Reproduce
Steps to reproduce the behavior:

  1. use play-services-oss-licenses:17.4.0
  2. specify android:theme="@style/AppTheme" for android:name="com.google.android.gms.oss.licenses.v2.OssLicensesMenuActivity" in the manifest
  3. setup your desired color for name="android:windowBackground" for your AppTheme style element
  4. requested color is not used

Expected behavior
The background color of OssLicensesMenuActivity must be the value declared for the item android:windowBackground(as it was for version < 17.4.0).

Desktop (please complete the following information):

  • Gradle version: 9.4.0
  • Android Studio version: 2025.3.2
  • Plugin name and version: play-services-oss-licenses:17.4.0, com.google.android.gms.oss-licenses-plugin:0.10.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions