From 2cbc94e51dcf51658c3d75e13bf69d788d5f9ec7 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 12 Oct 2022 22:15:41 -0500 Subject: [PATCH] Allow a pairing attempt even if the PC is busy Pairing while busy doesn't work with GFE but works with Sunshine --- app/src/main/java/com/limelight/PcView.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/limelight/PcView.java b/app/src/main/java/com/limelight/PcView.java index ec11b5ee..dbb8af8f 100644 --- a/app/src/main/java/com/limelight/PcView.java +++ b/app/src/main/java/com/limelight/PcView.java @@ -383,10 +383,6 @@ public class PcView extends Activity implements AdapterFragmentCallbacks { Toast.makeText(PcView.this, getResources().getString(R.string.pair_pc_offline), Toast.LENGTH_SHORT).show(); return; } - if (computer.runningGameId != 0) { - Toast.makeText(PcView.this, getResources().getString(R.string.pair_pc_ingame), Toast.LENGTH_LONG).show(); - return; - } if (managerBinder == null) { Toast.makeText(PcView.this, getResources().getString(R.string.error_manager_not_running), Toast.LENGTH_LONG).show(); return; @@ -426,7 +422,12 @@ public class PcView extends Activity implements AdapterFragmentCallbacks { message = getResources().getString(R.string.pair_incorrect_pin); } else if (pairState == PairState.FAILED) { - message = getResources().getString(R.string.pair_fail); + if (computer.runningGameId != 0) { + message = getResources().getString(R.string.pair_pc_ingame); + } + else { + message = getResources().getString(R.string.pair_fail); + } } else if (pairState == PairState.ALREADY_IN_PROGRESS) { message = getResources().getString(R.string.pair_already_in_progress);