mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 02:25:28 +00:00
Fix activity relaunches constantly on WSA
It's magic 💢 since change configuration should not trigger activity relaunch.
This commit is contained in:
parent
f94452083f
commit
3aa1a68cdc
@ -67,7 +67,9 @@ open class App() : Application() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||||
|
if (resources.configuration.diff(newConfig) != 0) {
|
||||||
resources.updateConfig(newConfig)
|
resources.updateConfig(newConfig)
|
||||||
|
}
|
||||||
if (!isRunningAsStub)
|
if (!isRunningAsStub)
|
||||||
super.onConfigurationChanged(newConfig)
|
super.onConfigurationChanged(newConfig)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user