MGK
MGK

Reputation: 7098

Android 12 - Override default splash screen logo using splash screen api setSplashScreenTheme fails

I trying to override the default splash logo using SplashScreen API, setSplashScreenTheme. But it fails to set overridden logo but takes the default application logo. Is there way to override default logo programatically.

Setting theme directly via manifest overrides logo, but wanted set this programatically.

Also I am not able to override style "Theme.SplashScreen", even when target and compile sdk is set to 31. Only able to override if android Splashscreen library is integrated

Upvotes: 1

Views: 602

Answers (1)

MGK
MGK

Reputation: 7098

setSplashScreenTheme works if it is called from onResume.

Upvotes: 2

Related Questions