forked from mirror/monocles_chat
minor code clean up
(cherry picked from commit 5735bca517a798a1ef6ffa87dc5882b69888cbdd)
This commit is contained in:
parent
8ea5808cd6
commit
cefd1b0408
1 changed files with 3 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue