mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 15:05:44 +03:00
Rewrite if/else chain as if/return blocks
Just a matter of preference :-) Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
dceb4a6d79
commit
3762526318
1 changed files with 22 additions and 4 deletions
|
@ -372,14 +372,32 @@ public class PeerConnectionWrapper {
|
|||
if (nick != null) {
|
||||
dataChannelMessageNotifier.notifyNickChanged(nick);
|
||||
}
|
||||
} else if ("audioOn".equals(dataChannelMessage.getType())) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ("audioOn".equals(dataChannelMessage.getType())) {
|
||||
dataChannelMessageNotifier.notifyAudioOn();
|
||||
} else if ("audioOff".equals(dataChannelMessage.getType())) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ("audioOff".equals(dataChannelMessage.getType())) {
|
||||
dataChannelMessageNotifier.notifyAudioOff();
|
||||
} else if ("videoOn".equals(dataChannelMessage.getType())) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ("videoOn".equals(dataChannelMessage.getType())) {
|
||||
dataChannelMessageNotifier.notifyVideoOn();
|
||||
} else if ("videoOff".equals(dataChannelMessage.getType())) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ("videoOff".equals(dataChannelMessage.getType())) {
|
||||
dataChannelMessageNotifier.notifyVideoOff();
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue