Commit 3aa1a68c authored by RikkaW's avatar RikkaW Committed by John Wu

Fix activity relaunches constantly on WSA

It's magic 💢 since change configuration should not trigger activity relaunch.
parent f9445208
......@@ -67,7 +67,9 @@ open class App() : Application() {
}
override fun onConfigurationChanged(newConfig: Configuration) {
resources.updateConfig(newConfig)
if (resources.configuration.diff(newConfig) != 0) {
resources.updateConfig(newConfig)
}
if (!isRunningAsStub)
super.onConfigurationChanged(newConfig)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment