From a61314a386ced34aeb3e6a6b4de0b1ea9277ff2d Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Wed, 18 Sep 2024 10:06:27 +0700 Subject: [PATCH 1/2] Insure that QField toasts appear above the virtual keyboard --- src/qml/Toast.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/qml/Toast.qml b/src/qml/Toast.qml index a4c52c7402..a39be68a8c 100644 --- a/src/qml/Toast.qml +++ b/src/qml/Toast.qml @@ -7,9 +7,17 @@ Popup { property string type: 'info' property int edgeSpacing: 52 + property real virtualKeyboardHeight: { + const top = Qt.inputMethod.keyboardRectangle.top / Screen.devicePixelRatio; + if (top > 0) { + const height = Qt.inputMethod.keyboardRectangle.height / Screen.devicePixelRatio; + return height - (top + height - mainWindow.height); + } + return 0; + } x: edgeSpacing - y: parent.height - 112 + y: mainWindow.height - 112 - virtualKeyboardHeight z: 10001 width: mainWindow.width - edgeSpacing * 2 From e65ced477fd4caccc3a4736f15282c641f88d8c2 Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Wed, 18 Sep 2024 10:13:38 +0700 Subject: [PATCH 2/2] Add vibration permission to Android manifest --- platform/android/AndroidManifest.xml.in | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/android/AndroidManifest.xml.in b/platform/android/AndroidManifest.xml.in index 0b017e2903..f1ce868326 100644 --- a/platform/android/AndroidManifest.xml.in +++ b/platform/android/AndroidManifest.xml.in @@ -12,6 +12,7 @@ +