I\'ve been trying out the Google APIs for Android OSS licenses tool and come across an issue.
The activity is being launched from a library module that contains the
Application tag
<application
android:theme="@style/AppTheme">
application/>
and styles.xml
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
</style>
I hope ActionBar
required to set Title of activity
Just specify appropriate theme in the AndroidManifest.xml
file for 2 activities OssLicensesMenuActivity and OssLicensesActivity. For example:
<activity android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
android:theme="@style/Theme.AppCompat.DayNight.DarkActionBar"/>
<activity android:name="com.google.android.gms.oss.licenses.OssLicensesActivity"
android:theme="@style/Theme.AppCompat.DayNight.DarkActionBar"/>