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>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
android:id="@+id/addParticipantsLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@color/colorG"
|
android:background="@color/colorG"
|
||||||
|
|
|
@ -54,6 +54,7 @@ import java.util.ArrayList;
|
||||||
|
|
||||||
public class GroupInfoFragment extends Fragment implements ChatRoomListener {
|
public class GroupInfoFragment extends Fragment implements ChatRoomListener {
|
||||||
private ImageView mBackButton, mConfirmButton, mAddParticipantsButton;
|
private ImageView mBackButton, mConfirmButton, mAddParticipantsButton;
|
||||||
|
private RelativeLayout mAddParticipantsLayout;
|
||||||
private Address mGroupChatRoomAddress;
|
private Address mGroupChatRoomAddress;
|
||||||
private EditText mSubjectField;
|
private EditText mSubjectField;
|
||||||
private LayoutInflater mInflater;
|
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);
|
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 = view.findViewById(R.id.addParticipants);
|
||||||
mAddParticipantsButton.setOnClickListener(new View.OnClickListener() {
|
mAddParticipantsButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue