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

QtAndoidPrivate::activity() should be accompanied by ::context()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.0
    • 5.7.0
    • QPA
    • None
    • Android

    Description

      The new service support implies that Activity objects are not always suitable. In the case of a service the Service object is set. In general though both classes are derived from Android's Context object. Therefore QAndroidPrivate and QtAndroid should provide accessors to the resulting Context object.

      This was already realised on Java class level via QTBUG-54506. However the QtAndroidExtras and QtAndroidPrivate class should have a similar accessor to return the context object.

      For more info see https://codereview.qt-project.org/#/c/165469/

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            ablasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes