IacobIonut01 / Gallery

Light-weight Media Gallery app for Android made with Jetpack Compose
Apache License 2.0
1.05k stars 57 forks source link

Add Splash Screen Library #372

Closed k2helix closed 3 months ago

k2helix commented 3 months ago

This PR adds the androidx Splash Screen compat library, which can be used to show fancy animations when opening the app on API 31+ (Android 12+), and maintains the old behaviour on apis prior to that.

More spefically, I wanted to have different a splash screen when on dark mode, solving https://github.com/IacobIonut01/Gallery/issues/318.

I followed this official guide to migrate to this api: https://developer.android.com/develop/ui/views/launch/splash-screen/migrate.

Tested and working on Pixel 8 (physical) and Pixel 3a (virtual)

IacobIonut01 commented 3 months ago

Looks good to me