Android: release deadlock protector from requestPermissions()

Note this would ideally use androiddeadlockprotector.h, but since
it's living under the plugins directory it won't be accessible for
this code without some refactoring.

Fixes: QTBUG-133841
Pick-to: 6.9 6.8 6.5
Change-Id: I9b62e7a9809ba5e0782a82b9c07d122de544aece
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
This commit is contained in:
Assam Boudjelthia 2025-04-23 03:37:04 +03:00
parent 25fbbb5612
commit e8aa9ff638

View File

@ -1127,6 +1127,8 @@ requestPermissionsInternal(const QStringList &permissions)
env->DeleteLocalRef(array);
});
QtAndroidPrivate::releaseAndroidDeadlockProtector();
return future;
}