From 4414002b8a75c0f4fa2ac805d18a48500f2fe99b Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Mon, 9 May 2022 12:44:51 +0200 Subject: [PATCH] reformat code Signed-off-by: Marcel Hibbe --- .../talk/activities/CallActivity.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java index 093dd9134f..ca783f20a8 100644 --- a/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java +++ b/app/src/main/java/com/nextcloud/talk/activities/CallActivity.java @@ -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, @@ -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": @@ -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");