minor code clean up

(cherry picked from commit 5735bca517a798a1ef6ffa87dc5882b69888cbdd)
This commit is contained in:
Daniel Gultsch 2022-10-01 09:26:07 +02:00 committed by Christian Schneppe
parent 8ea5808cd6
commit cefd1b0408

View file

@ -505,6 +505,9 @@ public class RtpSessionActivity extends XmppActivity
@StringRes int res;
final String firstDenied =
getFirstDenied(permissionResult.grantResults, permissionResult.permissions);
if (firstDenied == null) {
return;
}
if (Manifest.permission.RECORD_AUDIO.equals(firstDenied)) {
res = R.string.no_microphone_permission;
} else if (Manifest.permission.CAMERA.equals(firstDenied)) {