mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
Fix stub theme
This commit is contained in:
@@ -6,6 +6,7 @@ import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.pm.ApplicationInfo
|
||||
import android.content.res.Resources
|
||||
import android.os.Bundle
|
||||
import android.view.WindowManager
|
||||
import android.widget.Toast
|
||||
@@ -80,11 +81,15 @@ class MainActivity : ComponentActivity(), SplashScreenHost {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
extension.onCreate(savedInstanceState)
|
||||
splashController.preOnCreate()
|
||||
theme.applyStyle(R.style.Main, true)
|
||||
super.onCreate(savedInstanceState)
|
||||
splashController.onCreate(savedInstanceState)
|
||||
}
|
||||
|
||||
override fun onApplyThemeResource(theme: Resources.Theme, resid: Int, first: Boolean) {
|
||||
super.onApplyThemeResource(theme, resid, first)
|
||||
theme.applyStyle(R.style.Main, true)
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
splashController.onResume()
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="Main">
|
||||
<item name="postSplashScreenTheme">@android:style/Theme.DeviceDefault.NoActionBar</item>
|
||||
</style>
|
||||
<style name="Main" parent="android:Theme.Material.Light.NoActionBar" />
|
||||
|
||||
<style name="Floating" parent="android:Theme.DeviceDefault.NoActionBar">
|
||||
<style name="Floating" parent="android:Theme.Material.Light.NoActionBar">
|
||||
<item name="android:windowIsTranslucent">true</item>
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user