mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-25 22:49:51 +01:00
Some refactoring
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
bf6a712ab8
commit
95ac072a15
@ -546,7 +546,7 @@ public class CallActivity extends AppCompatActivity {
|
||||
cameraControlButton.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
if (cameraSwitchButton != null && cameraEnumerator.getDeviceNames().length > 1) {
|
||||
if (cameraEnumerator.getDeviceNames().length > 1) {
|
||||
if (!initialPermissionsCheck) {
|
||||
cameraSwitchButton.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
@ -570,7 +570,7 @@ public class CallActivity extends AppCompatActivity {
|
||||
cameraControlButton.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
if (cameraSwitchButton != null && cameraEnumerator.getDeviceNames().length > 1) {
|
||||
if (cameraEnumerator.getDeviceNames().length > 1) {
|
||||
cameraSwitchButton.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
@ -581,10 +581,8 @@ public class CallActivity extends AppCompatActivity {
|
||||
} else {
|
||||
cameraControlButton.getFrontImageView().setImageResource(R.drawable.ic_videocam_off_white_24px);
|
||||
cameraControlButton.setAlpha(0.7f);
|
||||
if (cameraSwitchButton != null) {
|
||||
cameraSwitchButton.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
if (EffortlessPermissions.hasPermissions(this, PERMISSIONS_MICROPHONE)) {
|
||||
if (!audioOn) {
|
||||
|
Loading…
Reference in New Issue
Block a user