Selaa lähdekoodia

slight code reformatting

AndyScherzinger 7 vuotta sitten
vanhempi
commit
ab28954926

+ 2 - 2
app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java

@@ -758,14 +758,14 @@ public class ContactsController extends BaseController implements SearchView.OnQ
     @Optional
     @OnClick(R.id.call_header_layout)
     void toggleCallHeader() {
-        isPublicCall = !isPublicCall;
-        if (!isPublicCall) {
+        if (isPublicCall) {
             secondaryRelativeLayout.setVisibility(View.GONE);
             initialRelativeLayout.setVisibility(View.VISIBLE);
         } else {
             initialRelativeLayout.setVisibility(View.GONE);
             secondaryRelativeLayout.setVisibility(View.VISIBLE);
         }
+        isPublicCall = !isPublicCall;
         checkAndHandleBottomButtons();
     }
 }