Adjust the SDK/API version check for getInsetsController()

The function is introduced in API level 30, causing an error
on a 29 device

Amends: eda4049a01

Pick-to: 6.5 6.4 6.2
Change-Id: I5f4e2301d04a0a2e0e2f4037e4c371efd2fef352
Reviewed-by: Bartlomiej Moskal <bartlomiej.moskal@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
bb10
Juha Vuolle 2023-01-05 20:59:45 +02:00
parent d8d1049ff8
commit 40cb7434af
1 changed files with 1 additions and 1 deletions

View File

@ -982,7 +982,7 @@ public class QtActivityDelegate
private void handleUiModeChange(int uiMode)
{
// QTBUG-108365
if (Build.VERSION.SDK_INT >= 29) {
if (Build.VERSION.SDK_INT >= 30) {
// Since 29 version we are using Theme_DeviceDefault_DayNight
Window window = m_activity.getWindow();
WindowInsetsController controller = window.getInsetsController();