Skip to content

Commit

Permalink
fix: double splash screen in android 12 or later
Browse files Browse the repository at this point in the history
I disable the default splash screen but we should consider
migrating to SplashScreen API
  • Loading branch information
princeraj-pr committed Dec 19, 2023
1 parent aae9124 commit 0fe7d93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<activity android:name=".ui.activities.DashboardActivity" />
<activity
android:name=".ui.activities.SplashScreen"
android:theme="@style/Theme.RemoveSplashScreenTheme"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@
<item name="cornerSize">16dp</item>
</style>

<!-- Disable Android 12 default splash screen -->
<style name="Theme.RemoveSplashScreenTheme" parent="@style/Theme.CycloFit">
<item name="android:windowIsTranslucent">true</item>
</style>

</resources>

0 comments on commit 0fe7d93

Please sign in to comment.