Fix composing

This commit is contained in:
Erwan Croze 2018-08-16 16:06:05 +02:00
parent f662ff0fa1
commit 30a893fc15
2 changed files with 7 additions and 3 deletions

View file

@ -56,15 +56,17 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:textSize="11.7sp"
android:maxLines="1"
android:textColor="@color/colorC"/>
<TextView
android:id="@+id/remote_composing"
style="@style/font11"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/footer"
android:textSize="11.7sp"
android:maxLines="1"
android:text="@string/remote_composing"/>
</LinearLayout>

View file

@ -850,8 +850,10 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
}
mRemoteComposing.setVisibility(View.VISIBLE);
mParticipantsLabel.setVisibility(View.GONE);
if (composing.size() == 0) {
mRemoteComposing.setVisibility(View.INVISIBLE);
mRemoteComposing.setVisibility(View.GONE);
mParticipantsLabel.setVisibility(View.VISIBLE);
} else if (composing.size() == 1) {
mRemoteComposing.setText(getString(R.string.remote_composing_single).replace("%s", composing.get(0)));
} else {