Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a58c1c6 authored by Ale Nijamkin's avatar Ale Nijamkin Committed by Android (Google) Code Review
Browse files

Merge "Attempts to fix InputChannel not initialized crash." into udc-dev

parents 0d750d1f f5811c4c
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -172,6 +172,10 @@ constructor(
            rootView.translationX = (width - scale * rootView.width) / 2
            rootView.translationX = (width - scale * rootView.width) / 2
            rootView.translationY = (height - scale * rootView.height) / 2
            rootView.translationY = (height - scale * rootView.height) / 2


            if (isDestroyed) {
                return@post
            }

            host.setView(rootView, rootView.measuredWidth, rootView.measuredHeight)
            host.setView(rootView, rootView.measuredWidth, rootView.measuredHeight)
        }
        }
    }
    }