From b3bf5ed95ed0cf0de41f1b6260fff5aa593bb521 Mon Sep 17 00:00:00 2001 From: Michael Piendl Date: Mon, 29 Nov 2021 10:18:13 +0100 Subject: [PATCH] RUB-269 ViewHeight --- qtbase/src/plugins/platforms/android/androidjnimain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtbase/src/plugins/platforms/android/androidjnimain.cpp b/qtbase/src/plugins/platforms/android/androidjnimain.cpp index be8717db0a..5e281f3003 100644 --- a/qtbase/src/plugins/platforms/android/androidjnimain.cpp +++ b/qtbase/src/plugins/platforms/android/androidjnimain.cpp @@ -654,7 +654,7 @@ static void setDisplayMetrics(JNIEnv */*env*/, jclass /*clazz*/, // Android does not give us the correct screen size for immersive mode, but // the surface does have the right size - bool updateDesktopSize = m_desktopWidthPixels != desktopWidthPixels; + bool updateDesktopSize = m_desktopWidthPixels != desktopWidthPixels || m_desktopHeightPixels != desktopHeightPixels; widthPixels = qMax(widthPixels, desktopWidthPixels); heightPixels = qMax(heightPixels, desktopHeightPixels); -- 2.24.0