Skip to content

Commit 82316a8

Browse files
committed
fix: Do not automatically go back to Key Mapper after enabling wireless debugging because some devices show a dialog that will be auto dismissed resulting in wireless ADB being immediately disabled.
E.g OnePlus 6T Oxygen OS 11
1 parent 53bde3f commit 82316a8

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

sysbridge/src/main/java/io/github/sds100/keymapper/sysbridge/service/SystemBridgeSetupController.kt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,9 @@ class SystemBridgeSetupControllerImpl @Inject constructor(
8383
SettingsUtils.settingsCallbackFlow(ctx, uri).collect {
8484
isWirelessDebuggingEnabled.update { getWirelessDebuggingEnabled() }
8585

86-
// Only go back if the user is currently setting up the wireless debugging step.
87-
// This stops Key Mapper going back if they are turning on wireless debugging
88-
// for another reason.
89-
if (isWirelessDebuggingEnabled.value &&
90-
setupAssistantStepState.value == SystemBridgeSetupStep.WIRELESS_DEBUGGING
91-
) {
92-
getKeyMapperAppTask()?.moveToFront()
93-
}
86+
// Do not automatically go back to Key Mapper after this step because
87+
// some devices show a dialog that will be auto dismissed resulting in wireless
88+
// ADB being immediately disabled. E.g OnePlus 6T Oxygen OS 11
9489
}
9590
}
9691

0 commit comments

Comments
 (0)