summaryrefslogtreecommitdiffstats
path: root/src/plugins/android/src/common/qandroidmultimediautils.h
diff options
context:
space:
mode:
authorVal Doroshchuk <valentyn.doroshchuk@qt.io>2019-11-13 11:05:48 +0100
committerVal Doroshchuk <valentyn.doroshchuk@qt.io>2019-11-15 12:27:24 +0100
commit72fdf4b20e916ea87b334be1a35235ac1023e0d8 (patch)
treedbda2c7df41e137edd9d30fc594ac6ec2842ca52 /src/plugins/android/src/common/qandroidmultimediautils.h
parent1d17e3973dda183545025e6d8f99dc3f219344e5 (diff)
Android: Don't close camera when recording permission is asked
If camera permission is granted and recording is requested it also requires recording audio permission. If it was not granted before the popup will be shown to ask the user to grant the permission and the app goes to inactive state, which destroys the camera handlers. When the camera is loaded but the app requires additional permissions, it should not destroy the camera. Change-Id: Iee3662a7ac3381b0eb29190779b0116f9f64304f Fixes: QTBUG-79909 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/plugins/android/src/common/qandroidmultimediautils.h')
-rw-r--r--src/plugins/android/src/common/qandroidmultimediautils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/android/src/common/qandroidmultimediautils.h b/src/plugins/android/src/common/qandroidmultimediautils.h
index 0a837ae3c..bbd2e9aa5 100644
--- a/src/plugins/android/src/common/qandroidmultimediautils.h
+++ b/src/plugins/android/src/common/qandroidmultimediautils.h
@@ -56,6 +56,7 @@ QVideoFrame::PixelFormat qt_pixelFormatFromAndroidImageFormat(AndroidCamera::Ima
AndroidCamera::ImageFormat qt_androidImageFormatFromPixelFormat(QVideoFrame::PixelFormat f);
bool qt_androidRequestPermission(const QString &key);
+bool qt_androidRequestRecordingPermission();
QT_END_NAMESPACE