reformat code

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-05-09 12:44:51 +02:00
parent 470dbe89c2
commit 4414002b8a
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -633,23 +633,23 @@ public class CallActivity extends CallBaseActivity {
binding.conversationRelativeLayout binding.conversationRelativeLayout
.getViewTreeObserver() .getViewTreeObserver()
.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { .addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override @Override
public void onGlobalLayout() { public void onGlobalLayout() {
binding.conversationRelativeLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this); binding.conversationRelativeLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this);
int height = binding.conversationRelativeLayout.getMeasuredHeight(); int height = binding.conversationRelativeLayout.getMeasuredHeight();
binding.gridview.setMinimumHeight(height); binding.gridview.setMinimumHeight(height);
} }
}); });
binding binding
.callInfosLinearLayout .callInfosLinearLayout
.getViewTreeObserver() .getViewTreeObserver()
.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { .addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override @Override
public void onGlobalLayout() { public void onGlobalLayout() {
binding.callInfosLinearLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this); binding.callInfosLinearLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this);
} }
}); });
participantsAdapter = new ParticipantsAdapter( participantsAdapter = new ParticipantsAdapter(
this, this,
@ -1593,9 +1593,9 @@ public class CallActivity extends CallBaseActivity {
if ("unshareScreen".equals(type) || if ("unshareScreen".equals(type) ||
(("offer".equals(type) || (("offer".equals(type) ||
"answer".equals(type) || "answer".equals(type) ||
"candidate".equals(type) || "candidate".equals(type) ||
"endOfCandidates".equals(type)) && "endOfCandidates".equals(type)) &&
peerConnectionWrapper != null)) { peerConnectionWrapper != null)) {
switch (type) { switch (type) {
case "unshareScreen": case "unshareScreen":
@ -1692,7 +1692,7 @@ public class CallActivity extends CallBaseActivity {
endPeerConnection(peerConnectionWrapperList.get(i).getSessionId(), false); endPeerConnection(peerConnectionWrapperList.get(i).getSessionId(), false);
} }
if(localStream != null) { if (localStream != null) {
localStream.dispose(); localStream.dispose();
localStream = null; localStream = null;
Log.d(TAG, "Disposed localStream"); Log.d(TAG, "Disposed localStream");