Skip to content
Snippets Groups Projects
Commit ec388622 authored by Charles Lombardo's avatar Charles Lombardo
Browse files

android: Don't update views if binding is null in onConfigurationChanged

parent 6a425e95
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment