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
parent
d8d1049ff8
commit
40cb7434af
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue