fix RtpSessionActivity not asking for permissions
This commit is contained in:
parent
c178910e4d
commit
981dc2df6d
|
@ -72,7 +72,7 @@ public class PermissionUtils {
|
||||||
|
|
||||||
public static boolean hasPermission(
|
public static boolean hasPermission(
|
||||||
final Activity activity, final List<String> permissions, final int requestCode) {
|
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<>();
|
final ImmutableList.Builder<String> missingPermissions = new ImmutableList.Builder<>();
|
||||||
for (final String permission : permissions) {
|
for (final String permission : permissions) {
|
||||||
if (ActivityCompat.checkSelfPermission(activity, permission)
|
if (ActivityCompat.checkSelfPermission(activity, permission)
|
||||||
|
|
Loading…
Reference in a new issue