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:
- use
play-services-oss-licenses:17.4.0
- specify
android:theme="@style/AppTheme" for android:name="com.google.android.gms.oss.licenses.v2.OssLicensesMenuActivity" in the manifest
- setup your desired color for
name="android:windowBackground" for your AppTheme style element
- 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
Describe the bug
Following the documentation on how to apply a custom theme for
OssLicensesMenuActivity(v2) is not working.Regardless of
android:windowBackgroundset in the custom theme,OssLicensesMenuActivitywill always render the default Material3 background color (soft pink, #FEF7FF).To Reproduce
Steps to reproduce the behavior:
play-services-oss-licenses:17.4.0android:theme="@style/AppTheme"forandroid:name="com.google.android.gms.oss.licenses.v2.OssLicensesMenuActivity"in the manifestname="android:windowBackground"for yourAppThemestyle elementExpected behavior
The background color of
OssLicensesMenuActivitymust be the value declared for the itemandroid:windowBackground(as it was for version < 17.4.0).Desktop (please complete the following information):
play-services-oss-licenses:17.4.0,com.google.android.gms.oss-licenses-plugin:0.10.10