mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-27 00:15:51 -04:00
Open image camera or gallery selector from main QtActivity
This commit is contained in:
parent
3b092f7fb6
commit
5838b13043
2 changed files with 73 additions and 4 deletions
|
@ -19,10 +19,9 @@ public slots:
|
|||
qDebug() << "Starting image picker intent";
|
||||
|
||||
#ifdef __ANDROID__
|
||||
QAndroidJniObject::callStaticMethod<void>(
|
||||
"org/retroshare/android/qml_app/RetroshareImagePicker",
|
||||
"imagePickerIntent",
|
||||
"()Landroid/content/Intent;" );
|
||||
QtAndroid::androidActivity().callMethod<void>(
|
||||
"openImagePicker",
|
||||
"()V" );
|
||||
#endif // __ANDROID__
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue