mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
Android: Add null check for InputOverlay
Hopefully fixes https://bugs.dolphin-emu.org/issues/12316.
This commit is contained in:
parent
72997c17d0
commit
32ad2dcec3
@ -94,6 +94,8 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
|
||||
doneButton.setOnClickListener(v -> stopConfiguringControls());
|
||||
}
|
||||
|
||||
if (mInputOverlay != null)
|
||||
{
|
||||
contents.post(() ->
|
||||
{
|
||||
int overlayX = mInputOverlay.getLeft();
|
||||
@ -102,6 +104,7 @@ public final class EmulationFragment extends Fragment implements SurfaceHolder.C
|
||||
surfaceView.getLeft() - overlayX, surfaceView.getTop() - overlayY,
|
||||
surfaceView.getRight() - overlayX, surfaceView.getBottom() - overlayY));
|
||||
});
|
||||
}
|
||||
|
||||
// The new Surface created here will get passed to the native code via onSurfaceChanged.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user