Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import android.os.IBinder
import android.util.Log
import android.view.View
import android.view.ViewTreeObserver
import android.view.Window
import android.view.animation.AccelerateInterpolator
import androidx.activity.ComponentActivity
import androidx.activity.compose.BackHandler
Expand Down Expand Up @@ -130,9 +131,10 @@ class MainActivity : ComponentActivity() {
}

override fun onCreate(savedInstanceState: Bundle?) {
WindowCompat.setDecorFitsSystemWindows(window, false)
requestWindowFeature(Window.FEATURE_NO_TITLE) // Hide the title bar
val splashScreen = installSplashScreen()
super.onCreate(savedInstanceState)
WindowCompat.setDecorFitsSystemWindows(window, false)

splashScreen.setOnExitAnimationListener { splashScreenView ->
val scale = ObjectAnimator.ofPropertyValuesHolder(
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
<style name="Theme.KernelFlasher" parent="Theme.Material3.DayNight.NoActionBar">
<item name="android:statusBarColor" >@android:color/transparent</item>
<item name="android:windowLightStatusBar">false</item>
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>
</resources>
2 changes: 2 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<style name="Theme.KernelFlasher" parent="Theme.Material3.DayNight.NoActionBar">
<item name="android:statusBarColor" >@android:color/transparent</item>
<item name="android:windowLightStatusBar">true</item>
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
</style>
<style name="Theme.MainSplashScreen" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/ic_splash_background</item>
Expand Down
Loading