From fc69a0e2c92abaa1bd745f90156796116e1700ee Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 24 Oct 2018 15:39:46 +0200 Subject: [PATCH] Fixed chat room top bar while in call --- res/layout-land/chatlist_cell.xml | 113 ------------------ res/layout-sw533dp-land/chatlist_cell.xml | 111 ----------------- res/layout-sw533dp/chatlist_cell.xml | 112 ----------------- res/layout/chat.xml | 22 ++-- .../org/linphone/chat/GroupChatFragment.java | 41 +++---- 5 files changed, 32 insertions(+), 367 deletions(-) delete mode 100644 res/layout-land/chatlist_cell.xml delete mode 100644 res/layout-sw533dp-land/chatlist_cell.xml delete mode 100644 res/layout-sw533dp/chatlist_cell.xml diff --git a/res/layout-land/chatlist_cell.xml b/res/layout-land/chatlist_cell.xml deleted file mode 100644 index 01d24c2bc..000000000 --- a/res/layout-land/chatlist_cell.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout-sw533dp-land/chatlist_cell.xml b/res/layout-sw533dp-land/chatlist_cell.xml deleted file mode 100644 index 2cc25b94a..000000000 --- a/res/layout-sw533dp-land/chatlist_cell.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout-sw533dp/chatlist_cell.xml b/res/layout-sw533dp/chatlist_cell.xml deleted file mode 100644 index 53b300bdc..000000000 --- a/res/layout-sw533dp/chatlist_cell.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/layout/chat.xml b/res/layout/chat.xml index eefe0ceae..6c97e62a6 100644 --- a/res/layout/chat.xml +++ b/res/layout/chat.xml @@ -63,6 +63,17 @@ android:layout_weight="0.2" android:padding="15dp"/> + + - - 0) { mBackToCallButton.setVisibility(View.VISIBLE); - } else { - mBackToCallButton.setVisibility(View.GONE); - if (mChatRoom.hasCapability(ChatRoomCapabilities.OneToOne.toInt())) { - mCallButton.setVisibility(View.VISIBLE); - mGroupInfosButton.setVisibility(View.GONE); - mParticipantsLabel.setVisibility(View.GONE); - - if (mParticipants.size() == 0) { - // Contact not found - String displayName = LinphoneUtils.getAddressDisplayName(mRemoteParticipantAddress); - mRoomLabel.setText(displayName); - } else { - mRoomLabel.setText(mParticipants.get(0).getFullName()); - } - } else { - mCallButton.setVisibility(View.GONE); - mGroupInfosButton.setVisibility(View.VISIBLE); - mRoomLabel.setText(mChatRoom.getSubject()); - mParticipantsLabel.setVisibility(View.VISIBLE); - } + mCallButton.setVisibility(View.GONE); } if (mChatRoom.hasBeenLeft()) {