Use full participants layout as button
This commit is contained in:
parent
f39f1af009
commit
f3aa072cc9
2 changed files with 9 additions and 0 deletions
|
@ -72,6 +72,7 @@
|
|||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/addParticipantsLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/colorG"
|
||||
|
|
|
@ -54,6 +54,7 @@ import java.util.ArrayList;
|
|||
|
||||
public class GroupInfoFragment extends Fragment implements ChatRoomListener {
|
||||
private ImageView mBackButton, mConfirmButton, mAddParticipantsButton;
|
||||
private RelativeLayout mAddParticipantsLayout;
|
||||
private Address mGroupChatRoomAddress;
|
||||
private EditText mSubjectField;
|
||||
private LayoutInflater mInflater;
|
||||
|
@ -140,6 +141,13 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
|
|||
});
|
||||
mLeaveGroupButton.setVisibility(mIsAlreadyCreatedGroup && mChatRoom.hasBeenLeft() ? View.GONE : mIsAlreadyCreatedGroup ? View.VISIBLE : View.GONE);
|
||||
|
||||
mAddParticipantsLayout = view.findViewById(R.id.addParticipantsLayout);
|
||||
mAddParticipantsLayout.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
LinphoneActivity.instance().goToChatCreator(mGroupChatRoomAddress != null ? mGroupChatRoomAddress.asString() : null, mParticipants, mSubject, !mIsAlreadyCreatedGroup);
|
||||
}
|
||||
});
|
||||
mAddParticipantsButton = view.findViewById(R.id.addParticipants);
|
||||
mAddParticipantsButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue