Documentation: Update API documentation of QAndroidPrivate

- Some references of androidActivity() were replaced by
   QNativeInterface::QAndroidApplication::context()

Pick-to: 6.8 6.7 6.5 6.2
Fixes: QTBUG-127926
Change-Id: Ib2fdb3d13ad72121895c5464d8a21cda33bb28b3
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
Shyamnath Premnadh 2024-08-12 13:41:15 +02:00 committed by Nicholas Bennett
parent 7b1f3bdc50
commit 91f70771a8

View File

@ -884,8 +884,9 @@ QJniObject QAndroidIntent::handle() const
Starts the activity given by \a intent and provides the result asynchronously through the
\a resultReceiver if this is non-null.
If \a resultReceiver is null, then the \c startActivity() method in the \c androidActivity()
will be called. Otherwise \c startActivityForResult() will be called.
If \a resultReceiver is null, then the \c startActivity() method of
QNativeInterface::QAndroidApplication::context() will be called. Otherwise
\c startActivityForResult() will be called.
The \a receiverRequestCode is a request code unique to the \a resultReceiver, and will be
returned along with the result, making it possible to use the same receiver for more than
@ -917,8 +918,9 @@ void QtAndroidPrivate::startActivity(const QJniObject &intent,
Starts the activity given by \a intent and provides the result asynchronously through the
\a resultReceiver if this is non-null.
If \a resultReceiver is null, then the \c startActivity() method in the \c androidActivity()
will be called. Otherwise \c startActivityForResult() will be called.
If \a resultReceiver is null, then the \c startActivity() method of
QNativeInterface::QAndroidApplication::context() will be called. Otherwise
\c startActivityForResult() will be called.
The \a receiverRequestCode is a request code unique to the \a resultReceiver, and will be
returned along with the result, making it possible to use the same receiver for more than
@ -954,8 +956,9 @@ void QtAndroidPrivate::startActivity(const QJniObject &intent,
Starts the activity given by \a intentSender and provides the result asynchronously through the
\a resultReceiver if this is non-null.
If \a resultReceiver is null, then the \c startIntentSender() method in the \c androidActivity()
will be called. Otherwise \c startIntentSenderForResult() will be called.
If \a resultReceiver is null, then the \c startIntentSender() method of
QNativeInterface::QAndroidApplication::context() will be called. Otherwise
\c startIntentSenderForResult() will be called.
The \a receiverRequestCode is a request code unique to the \a resultReceiver, and will be
returned along with the result, making it possible to use the same receiver for more than