Skip to content

Commit a11f6e5

Browse files
committed
#2004 fix: do not crash when launching wireless debugging screen on some devices.
1 parent 18fd6df commit a11f6e5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#### TO BE RELEASED
44

55
## Fixed
6-
- #2007 Volume up/down action bottom sheet is cut off on some devices
6+
- #2007 Volume up/down action bottom sheet is cut off on some devices.
7+
- #2004 Do not crash when launching wireless debugging screen on some devices.
78

89
## [4.0.0](https://github.com/sds100/KeyMapper/releases/tag/v4.0.0)
910

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ class SystemBridgeSetupControllerImpl @Inject constructor(
369369
try {
370370
ctx.startActivity(quickSettingsIntent)
371371
return true
372+
} catch (_: SecurityException) {
373+
highlightDeveloperOptionsWirelessDebuggingOption()
374+
375+
return false
372376
} catch (_: ActivityNotFoundException) {
373377
highlightDeveloperOptionsWirelessDebuggingOption()
374378

0 commit comments

Comments
 (0)