Device events added

This commit is contained in:
Sylvain Berfini 2018-01-24 14:37:33 +01:00
parent 4a61ec2cbb
commit 034416e78c
2 changed files with 8 additions and 0 deletions

View file

@ -206,6 +206,8 @@
<string name="conference_destroyed">group destroyed</string> <string name="conference_destroyed">group destroyed</string>
<string name="participant_added">%s added</string> <string name="participant_added">%s added</string>
<string name="participant_removed">%s leaved</string> <string name="participant_removed">%s leaved</string>
<string name="device_added">new device for %s</string>
<string name="device_removed">device for %s removed</string>
<string name="subject_changed">new subject : %s</string> <string name="subject_changed">new subject : %s</string>
<string name="admin_set">%s is admin</string> <string name="admin_set">%s is admin</string>
<string name="admin_unset">%s is no longer admin</string> <string name="admin_unset">%s is no longer admin</string>

View file

@ -362,6 +362,12 @@ public class ChatEventsAdapter extends ListSelectionAdapter implements ChatMessa
case ConferenceParticipantUnsetAdmin: case ConferenceParticipantUnsetAdmin:
holder.eventMessage.setText(mContext.getString(R.string.admin_unset).replace("%s", displayName)); holder.eventMessage.setText(mContext.getString(R.string.admin_unset).replace("%s", displayName));
break; break;
case ConferenceParticipantDeviceAdded:
holder.eventMessage.setText(mContext.getString(R.string.device_added).replace("%s", displayName));
break;
case ConferenceParticipantDeviceRemoved:
holder.eventMessage.setText(mContext.getString(R.string.device_removed).replace("%s", displayName));
break;
case None: case None:
default: default:
//TODO //TODO