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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.7.0
    • Component/s: QPA
    • Labels:
      None
    • Platform/s:
      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

            • Assignee:
              ablasche Alex Blasche
              Reporter:
              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