Disabled rotation map for Android devices where "hw media keys follow gravity" (#12557)

This commit is contained in:
jkl16
2024-10-02 14:41:47 +02:00
committed by GitHub
parent 35918326f0
commit 6138779124

View File

@@ -246,6 +246,11 @@ function Device:init()
end,
}
-- disable translation for specific models, where media keys follow gravity, see https://github.com/koreader/koreader/issues/12423
if android.prop.model == "moaanmix7" or android.prop.model == "xiaomi_reader" then
self.input:disableRotationMap()
end
-- check if we have a keyboard
if android.lib.AConfiguration_getKeyboard(android.app.config)
== C.ACONFIGURATION_KEYBOARD_QWERTY