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

Android: QtActivityDelegate uses API introduced in API 30

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 6.5.0 RC
    • QPA: Android
    • None
    • Android
    • 2023wk14FOQtforAndroid

    Description

      The commit https://github.com/qt/qtbase/commit/eda4049a0142029c192e1690bafffbb98ee4ff99

      introduced usage of Window.getInsetsController() which has been [added in API 30|
      https://developer.android.com/reference/android/view/Window#getInsetsController() ]
      Apparently the API did exist prior to 30, but was restricted -> this leads to apps crashing with error

      Accessing hidden method Landroid/view/Window;->getInsetsController()Landroid/view/WindowInsetsController; (blacklist, linking, denied) 

      on Android version older than 11 (tested on Android 10).

      Attachments

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

        Activity

          People

            qtandroidteam Qt Android Team
            tinjapaavoseppa Tinja Paavoseppä
            Vladimir Minenko Vladimir Minenko
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes