From 304f650b69ff6944c6e5dd1afeeada384ce93beb Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Tue, 2 Dec 2025 09:20:28 -0800 Subject: [PATCH 1/2] Android: Fix white bars showing up on edge of screen --- src/UI/MainWindow.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/UI/MainWindow.qml b/src/UI/MainWindow.qml index 78864e8a585..7741430692a 100644 --- a/src/UI/MainWindow.qml +++ b/src/UI/MainWindow.qml @@ -14,18 +14,18 @@ import QtQuick.Layouts import QtQuick.Window import QGroundControl - import QGroundControl.Controls import QGroundControl.FactControls - import QGroundControl.FlightDisplay import QGroundControl.FlightMap /// @brief Native QML top level window /// All properties defined here are visible to all QML pages. ApplicationWindow { - id: mainWindow - visible: true + id: mainWindow + visible: true + // The special casing for android prevents white bars from showing up on the edges of the screen with never android versions + flags: Qt.Window | (ScreenTools.isAndroid ? Qt.ExpandedClientAreaHint | Qt.NoTitleBarBackgroundHint : 0) property bool _utmspSendActTrigger From cb728dd202152191d887841de3f9a5230580f7dd Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Wed, 3 Dec 2025 07:47:46 -0800 Subject: [PATCH 2/2] Update src/UI/MainWindow.qml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/UI/MainWindow.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/MainWindow.qml b/src/UI/MainWindow.qml index 7741430692a..29b099a76ec 100644 --- a/src/UI/MainWindow.qml +++ b/src/UI/MainWindow.qml @@ -24,7 +24,7 @@ import QGroundControl.FlightMap ApplicationWindow { id: mainWindow visible: true - // The special casing for android prevents white bars from showing up on the edges of the screen with never android versions + // The special casing for android prevents white bars from showing up on the edges of the screen with newer android versions flags: Qt.Window | (ScreenTools.isAndroid ? Qt.ExpandedClientAreaHint | Qt.NoTitleBarBackgroundHint : 0) property bool _utmspSendActTrigger