Skip to content

Commit 19bcdfb

Browse files
committed
#1911 feat: constraint for physical device orientation that ignores auto rotate setting
1 parent 7953c7c commit 19bcdfb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- #1915 ask user to remove "adb shell" from Shell command.
88
- #1904 inform the user how to enable the accessibility service with PRO mode or ADB.
9+
- #1911 constraint for physical device orientation that ignores auto rotate setting.
910

1011
## Bug fixes
1112

base/src/main/java/io/github/sds100/keymapper/base/sorting/comparators/KeyMapConstraintsComparator.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ class KeyMapConstraintsComparator(
140140
ConstraintData.HingeOpen -> Success("")
141141
ConstraintData.KeyboardNotShowing -> Success("")
142142
ConstraintData.KeyboardShowing -> Success("")
143+
is ConstraintData.PhysicalOrientation -> Success(
144+
constraint.data.physicalOrientation.toString(),
145+
)
143146
}
144147
}
145148
}

0 commit comments

Comments
 (0)