From 430dbb32a799222b2946fdd991d5e320b4b33c16 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 18 Apr 2021 19:49:20 +1000 Subject: [PATCH] Android: Fix possible crash when disconnecting controller --- .../com/github/stenzek/duckstation/EmulationSurfaceView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/github/stenzek/duckstation/EmulationSurfaceView.java b/android/app/src/main/java/com/github/stenzek/duckstation/EmulationSurfaceView.java index 47100afd9..53309c945 100644 --- a/android/app/src/main/java/com/github/stenzek/duckstation/EmulationSurfaceView.java +++ b/android/app/src/main/java/com/github/stenzek/duckstation/EmulationSurfaceView.java @@ -144,7 +144,7 @@ public class EmulationSurfaceView extends SurfaceView { Log.d("EmulationSurfaceView", String.format("Skipping device %s sources %d", (device != null) ? device.toString() : "", - (device != null) ? 0 : device.getSources())); + (device != null) ? device.getSources() : 0)); continue; }