mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2026-01-29 06:53:33 +08:00
android: Don't update views if binding is null in onConfigurationChanged
This commit is contained in:
@@ -304,6 +304,10 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
|
||||
|
||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||
super.onConfigurationChanged(newConfig)
|
||||
if (_binding == null) {
|
||||
return
|
||||
}
|
||||
|
||||
updateScreenLayout()
|
||||
if (emulationActivity?.isInPictureInPictureMode == true) {
|
||||
if (binding.drawerLayout.isOpen) {
|
||||
|
||||
Reference in New Issue
Block a user