summaryrefslogtreecommitdiffstats
path: root/src/plugins/imageformats/ico
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2023-03-24 10:53:11 +0100
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2023-03-28 18:37:36 +0200
commit21a6c86979064b70b11b14b97c8f828d08e29781 (patch)
treef542511c055ffb6baae2ab906893c1fe463736c7 /src/plugins/imageformats/ico
parentb4afba0c3450fd0c14ec7bada098c4e82ca310e7 (diff)
iOS: request authorization before presenting image-picker
Right now, image picker view is shown first (it does not require access to photos, since it's essentially Photos app getting access to photos ...). Then, we use AssetsLibrary to get asset for an url (using ALAssetsLibrarie's -assetForURL method). This may trigger a permission-related alert, asking to: a. Select more photos or ... b. Allow access to all photos or ... c. Deny access. Showing this alert _after_ picker has selected an image makes little sense (and probably was never intended this way anyway). Instead, we now use Photos.framework to check the authorization and, if needed, we request an authorization (when the current status is 'Nondetermined'). If authorization is 'Granted' as a result, we show picker view and proceed as normal/before. Pick-to: 6.5 Task-number: QTBUG-109120 Change-Id: I0acfd7b0476346360d75a5e37f5845aaf2d6e3e0 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/imageformats/ico')
0 files changed, 0 insertions, 0 deletions