fix RtpSessionActivity not asking for permissions

This commit is contained in:
Daniel Gultsch 2023-10-26 09:38:24 +02:00
parent c178910e4d
commit 981dc2df6d
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -72,7 +72,7 @@ public class PermissionUtils {
public static boolean hasPermission(
final Activity activity, final List<String> permissions, final int requestCode) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
final ImmutableList.Builder<String> missingPermissions = new ImmutableList.Builder<>();
for (final String permission : permissions) {
if (ActivityCompat.checkSelfPermission(activity, permission)