This is a repository that contains modified files from androidx.core:core-splashscreen:1.0.1
.
Modifications
- Removed the following lines to resolve the issue on android 12+ when the statusBar and navigationBar colors can't be set from themes.xml:
(activity.window.decorView as ViewGroup).setOnHierarchyChangeListener(hierarchyListener)
- Added the following lines to the file
v31\styles
to remove the unwanted actionbar on android 12+:
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
How To Use
- Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the dependency
dependencies {
implementation 'com.github.MrRuslanYT:SplashScreen:Tag'
}