Android: Fix possible crash when disconnecting controller

This commit is contained in:
Connor McLaughlin 2021-04-18 19:49:20 +10:00
parent c4891af00e
commit 430dbb32a7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}