iOS: Report PermissionStatus::Denied when detecting accuracy mismatch
There's no way to upgrade an Approximate accuracy permission to Precise, so once we have a known status we report the lacking accuracy as Denied. Change-Id: Id49af825335ff09669aa7f2285caaa744a5a4d24 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Juha Vuolle <juha.vuolle@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> (cherry picked from commit e2030e366b73f5af9e60c987e498f21f9c985f68) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
5b9b2d8f3f
commit
1517e5ff0a
@ -115,7 +115,7 @@ struct PermissionRequest
|
|||||||
if (permission.accuracy() == QLocationPermission::Approximate)
|
if (permission.accuracy() == QLocationPermission::Approximate)
|
||||||
return Qt::PermissionStatus::Granted;
|
return Qt::PermissionStatus::Granted;
|
||||||
else
|
else
|
||||||
return Qt::PermissionStatus::Denied; // FIXME: Verify
|
return Qt::PermissionStatus::Denied;
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_UNREACHABLE();
|
Q_UNREACHABLE();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user