Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132311

Validate edge-to-edge support / API use for Android 15

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.1
    • QPA: Android
    • None
    • Android
    • 2024wk52FOQtforAndroid

    Description

      After updating our app with Qt 6.8.1 and targeting SDK 34 (Android 14), we’re now seeing the following "recommended actions" in the Google Play console, which I believe stem from Qt’s Android API usage.

      Edge-to-edge may not display for all users

      From Android 15, all apps targeting SDK 35 will display edge-to-edge by default. Apps targeting SDK 35 should handle insets to make sure that their app displays correctly on Android 15 and later. We recommend investigating this issue and allowing time to test edge-to-edge on your app and make the required updates to your code. Alternatively, call enableEdgeToEdge() for Kotlin or EdgeToEdge.enable() for Java for backward compatibility.

      Your app uses deprecated APIs or parameters for edge-to-edge

      One or more of the APIs you use or parameters that you set for edge-to-edge and window display have been deprecated in Android 15. Your app uses the following deprecated APIs or parameters:

      • android.view.Window.getStatusBarColor
      • LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT
      • LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER

      These start in the following places:

      • org.qtproject.qt.android.QtActivityDelegateBase.handleUiModeChange
      • org.qtproject.qt.android.QtDisplayManager.setSystemUiVisibility

      To prepare for the change to Android 15, migrate away from these APIs or parameters.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              assam Assam Boudjelthia
              fseiffert Frederik Seiffert
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes