play-services-plugins icon indicating copy to clipboard operation
play-services-plugins copied to clipboard

[Feature request] Ability to set the theme in code / Make OssLicensesMenuActivity extendable

Open gmikhail opened this issue 2 years ago • 1 comments

My app uses two themes (dark and light). After applying the new theme, I need to apply the new theme dynamically in activities via setTheme in onCreate. But I can't set the theme in OssLicensesMenuActivity via code. Only set statically in the manifest:

 <activity
            android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
            android:theme="@style/AppThemeDark" />

It would be nice to be able to set the theme in code. Something like this:

OssLicensesMenuActivity.setActivityTheme(R.style.AppThemeDark);

Or at least make OssLicensesMenuActivity not final so it can be extended.

gmikhail avatar Nov 19 '22 09:11 gmikhail

Somewhat related: https://github.com/google/accompanist/issues/1314

alwa avatar Nov 19 '22 09:11 alwa