Commit 89839a67 authored by Grigory Fedorov's avatar Grigory Fedorov

Left padding added for input view in conference chat.

parent a4cd95df
...@@ -143,6 +143,8 @@ public class ChatViewerFragment extends Fragment implements PopupMenu.OnMenuItem ...@@ -143,6 +143,8 @@ public class ChatViewerFragment extends Fragment implements PopupMenu.OnMenuItem
AbstractChat abstractChat = MessageManager.getInstance().getChat(account, user); AbstractChat abstractChat = MessageManager.getInstance().getChat(account, user);
securityButton = (ImageButton) view.findViewById(R.id.button_security); securityButton = (ImageButton) view.findViewById(R.id.button_security);
View spacer = view.findViewById(R.id.button_security_spacer);
if (abstractChat instanceof RegularChat) { if (abstractChat instanceof RegularChat) {
securityButton.setOnClickListener(new View.OnClickListener() { securityButton.setOnClickListener(new View.OnClickListener() {
@Override @Override
...@@ -152,6 +154,7 @@ public class ChatViewerFragment extends Fragment implements PopupMenu.OnMenuItem ...@@ -152,6 +154,7 @@ public class ChatViewerFragment extends Fragment implements PopupMenu.OnMenuItem
}); });
} else { } else {
securityButton.setVisibility(View.GONE); securityButton.setVisibility(View.GONE);
spacer.setVisibility(View.VISIBLE);
} }
chatMessageAdapter = new ChatMessageAdapter(getActivity(), account, user, this); chatMessageAdapter = new ChatMessageAdapter(getActivity(), account, user, this);
......
...@@ -73,6 +73,13 @@ ...@@ -73,6 +73,13 @@
android:src="@drawable/ic_security_grey_24dp" android:src="@drawable/ic_security_grey_24dp"
/> />
<Space
android:id="@+id/button_security_spacer"
android:layout_width="16dp"
android:layout_height="match_parent"
android:visibility="gone"
/>
<EditText <EditText
android:id="@+id/chat_input" android:id="@+id/chat_input"
android:layout_width="0dp" android:layout_width="0dp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment