style: suppress deprecation

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2025-01-11 15:48:17 +01:00
parent 420fba2c45
commit 9603a2f7d4
1 changed files with 3 additions and 0 deletions

View File

@ -282,6 +282,7 @@ class MainActivity : AppCompatActivity() {
super.onResume()
DynamicColors.applyToActivityIfAvailable(this)
DynamicColors.applyToActivitiesIfAvailable(RevoltApplication.instance)
@Suppress("DEPRECATION") // We are fixing a bug in the splash screen
window.statusBarColor = Color.Transparent.toArgb()
}
@ -290,6 +291,7 @@ class MainActivity : AppCompatActivity() {
super.onConfigurationChanged(newConfig)
DynamicColors.applyToActivityIfAvailable(this)
DynamicColors.applyToActivitiesIfAvailable(RevoltApplication.instance)
@Suppress("DEPRECATION") // We are fixing a bug in the splash screen
window.statusBarColor = Color.Transparent.toArgb()
}
@ -302,6 +304,7 @@ class MainActivity : AppCompatActivity() {
options.release = BuildConfig.VERSION_NAME
}
@Suppress("DEPRECATION") // We are fixing a bug in the splash screen
window.statusBarColor = Color.Transparent.toArgb()
WindowCompat.setDecorFitsSystemWindows(window, false)