fix: qt6 9 support (#1973)

* Fix qt 6.9 support

* add support android sdk 36

* feat: add support SafeMargins from Android

* Fix black screen

---------

Co-authored-by: NickVs2015 <nv@amnezia.org>
This commit is contained in:
vkamn
2025-11-04 11:43:36 +08:00
committed by GitHub
parent aaf0e070dc
commit 741b5cc0f9
61 changed files with 255 additions and 68 deletions
+21 -2
View File
@@ -16,6 +16,26 @@ Window {
id: root
objectName: "mainWindow"
Connections {
target: Qt.application
function onStateChanged() {
if (Qt.platform.os === "android" && Qt.application.state === Qt.ApplicationActive) {
refreshTimer.restart()
}
}
}
Timer {
id: refreshTimer
interval: 150
repeat: false
onTriggered: {
if (Qt.platform.os === "android" && SettingsController.isEdgeToEdgeEnabled()) {
console.log("QML: Application resumed with edge-to-edge")
}
}
}
visible: true
width: GC.screenWidth
height: GC.screenHeight
@@ -111,7 +131,6 @@ Window {
PageStart {
objectName: "pageStart"
width: root.width
height: root.height
}
@@ -164,7 +183,7 @@ Window {
id: privateKeyPassphraseDrawer
anchors.fill: parent
expandedHeight: root.height * 0.35
expandedHeight: root.height * 0.35 + SettingsController.safeAreaBottomMargin
expandedStateContent: ColumnLayout {
anchors.top: parent.top