diff options
| author | Assam Boudjelthia <[email protected]> | 2025-09-10 17:45:29 +0300 |
|---|---|---|
| committer | Assam Boudjelthia <[email protected]> | 2025-09-12 14:19:10 +0300 |
| commit | ca17c91c4a87accaea88f52f5fb326bc41e4d1dd (patch) | |
| tree | 471950dcc1a77d1542a84ba1f0187e57023c8146 | |
| parent | 41491e96acb9f1a9c834e8f9625069081748a14f (diff) | |
Android: don't keep system visibility cache on both C++ and Java
Since Android Java side is managing the system ui visibility calls,
keep any cached states there to avoid any inconsistency between the
two sides, so Qt always sends the call and Java decides whether
it goes through with it or not.
Pick-to: 6.10 6.10.0
Change-Id: I68dfb64fe38ecd7d71a6aae5bfa2e32b8f481b04
Reviewed-by: Tor Arne Vestbø <[email protected]>
| -rw-r--r-- | src/plugins/platforms/android/qandroidplatformwindow.cpp | 8 | ||||
| -rw-r--r-- | src/plugins/platforms/android/qandroidplatformwindow.h | 3 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/plugins/platforms/android/qandroidplatformwindow.cpp b/src/plugins/platforms/android/qandroidplatformwindow.cpp index ccd40f5f5d4..958290fd53d 100644 --- a/src/plugins/platforms/android/qandroidplatformwindow.cpp +++ b/src/plugins/platforms/android/qandroidplatformwindow.cpp @@ -263,12 +263,8 @@ void QAndroidPlatformWindow::updateSystemUiVisibility() if (!isNonRegularWindow) { const bool isFullScreen = (m_windowState & Qt::WindowFullScreen); const bool expandedToCutout = (flags & Qt::ExpandedClientAreaHint); - if (m_isFullscreen != isFullScreen || m_expandedToCutout != expandedToCutout) { - m_isFullscreen = isFullScreen; - m_expandedToCutout = expandedToCutout; - QtAndroid::backendRegister()->callInterface<QtJniTypes::QtWindowInterface, void>( - "setSystemUiVisibility", isFullScreen, expandedToCutout); - } + QtAndroid::backendRegister()->callInterface<QtJniTypes::QtWindowInterface, void>( + "setSystemUiVisibility", isFullScreen, expandedToCutout); } } diff --git a/src/plugins/platforms/android/qandroidplatformwindow.h b/src/plugins/platforms/android/qandroidplatformwindow.h index b3fc0960cad..07f4e12b35c 100644 --- a/src/plugins/platforms/android/qandroidplatformwindow.h +++ b/src/plugins/platforms/android/qandroidplatformwindow.h @@ -112,9 +112,6 @@ private: Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(safeAreaMarginsChanged) [[nodiscard]] QMutexLocker<QMutex> destructionGuard(); - - bool m_isFullscreen; - bool m_expandedToCutout; }; QT_END_NAMESPACE |
