Skip to content

Commit

Permalink
reformat code
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Hibbe <[email protected]>
  • Loading branch information
mahibi committed May 9, 2022
1 parent 470dbe8 commit 4414002
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions app/src/main/java/com/nextcloud/talk/activities/CallActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -633,23 +633,23 @@ && getResources().getConfiguration().orientation == Configuration.ORIENTATION_PO
binding.conversationRelativeLayout
.getViewTreeObserver()
.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
binding.conversationRelativeLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this);
int height = binding.conversationRelativeLayout.getMeasuredHeight();
binding.gridview.setMinimumHeight(height);
}
});
@Override
public void onGlobalLayout() {
binding.conversationRelativeLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this);
int height = binding.conversationRelativeLayout.getMeasuredHeight();
binding.gridview.setMinimumHeight(height);
}
});

binding
.callInfosLinearLayout
.getViewTreeObserver()
.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
binding.callInfosLinearLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this);
}
});
@Override
public void onGlobalLayout() {
binding.callInfosLinearLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this);
}
});

participantsAdapter = new ParticipantsAdapter(
this,
Expand Down Expand Up @@ -1593,9 +1593,9 @@ private void processMessage(NCSignalingMessage ncSignalingMessage) {

if ("unshareScreen".equals(type) ||
(("offer".equals(type) ||
"answer".equals(type) ||
"candidate".equals(type) ||
"endOfCandidates".equals(type)) &&
"answer".equals(type) ||
"candidate".equals(type) ||
"endOfCandidates".equals(type)) &&
peerConnectionWrapper != null)) {
switch (type) {
case "unshareScreen":
Expand Down Expand Up @@ -1692,7 +1692,7 @@ private void hangup(boolean shutDownView) {
endPeerConnection(peerConnectionWrapperList.get(i).getSessionId(), false);
}

if(localStream != null) {
if (localStream != null) {
localStream.dispose();
localStream = null;
Log.d(TAG, "Disposed localStream");
Expand Down

0 comments on commit 4414002

Please sign in to comment.