From efb273750baea2a08759c904849b88e939c4194d Mon Sep 17 00:00:00 2001 From: Fabio Falsini Date: Thu, 15 Jul 2021 23:09:23 +0200 Subject: [PATCH] Fix bug of default background color in Android spashscreen If the manifest file was opened even if the parameters of the Android splashscreen were not changed, the plugin always set the default background color inside splashscreen.xml (0xffffff) Change-Id: Id6e16dfffb2c62f3ea16faf5e85d13a1b56d80c7 Reviewed-by: Assam Boudjelthia --- src/plugins/android/splashscreencontainerwidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/android/splashscreencontainerwidget.cpp b/src/plugins/android/splashscreencontainerwidget.cpp index 79e04f5b44a..d64000373b2 100644 --- a/src/plugins/android/splashscreencontainerwidget.cpp +++ b/src/plugins/android/splashscreencontainerwidget.cpp @@ -489,6 +489,7 @@ void SplashScreenContainerWidget::setSticky(bool sticky) void SplashScreenContainerWidget::setBackgroundColor(const QColor &color) { if (color != m_splashScreenBackgroundColor) { + m_splashScreenBackgroundColor = color; m_backgroundColor->setStyleSheet(QString("QToolButton {background-color: %1; border: 1px solid gray;}").arg(color.name())); for (auto &&imageWidget : m_imageWidgets) @@ -497,8 +498,6 @@ void SplashScreenContainerWidget::setBackgroundColor(const QColor &color) imageWidget->setBackgroundColor(color); for (auto &&imageWidget : m_landscapeImageWidgets) imageWidget->setBackgroundColor(color); - - m_splashScreenBackgroundColor = color; } }