Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-01-15 16:50:16 +01:00
parent 46fb761499
commit 93184ca6c4

View file

@ -542,7 +542,7 @@ public class CallActivity extends AppCompatActivity {
onCameraClick(); onCameraClick();
} }
} else if (!EffortlessPermissions.hasPermissions(this, PERMISSIONS_CAMERA)) { } else {
cameraControlButton.setImageResource(R.drawable.ic_videocam_off_white_24px); cameraControlButton.setImageResource(R.drawable.ic_videocam_off_white_24px);
if (cameraSwitchButton != null) { if (cameraSwitchButton != null) {
cameraSwitchButton.setVisibility(View.INVISIBLE); cameraSwitchButton.setVisibility(View.INVISIBLE);
@ -555,7 +555,7 @@ public class CallActivity extends AppCompatActivity {
if (!audioOn) { if (!audioOn) {
onMicrophoneClick(); onMicrophoneClick();
} }
} else if (!EffortlessPermissions.hasPermissions(this, PERMISSIONS_MICROPHONE)) { } else {
microphoneControlButton.setImageResource(R.drawable.ic_mic_off_white_24px); microphoneControlButton.setImageResource(R.drawable.ic_mic_off_white_24px);
} }