mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-01 20:22:03 +00:00
Show toast whenever someone raised the hand
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
7e3161e7f8
commit
6109496ab9
@ -2681,6 +2681,16 @@ public class CallActivity extends CallBaseActivity {
|
||||
|
||||
@Override
|
||||
public void onRaiseHand(boolean state, long timestamp) {
|
||||
if (state) {
|
||||
CallParticipant participant = callParticipants.get(sessionId);
|
||||
if (participant != null) {
|
||||
String nick = participant.getCallParticipantModel().getNick();
|
||||
runOnUiThread(() -> Toast.makeText(
|
||||
context,
|
||||
String.format(context.getResources().getString(R.string.nc_call_raised_hand), nick),
|
||||
Toast.LENGTH_LONG).show());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -222,6 +222,7 @@
|
||||
<string name="nc_call_button_content_description_answer_voice_only">Answer as voice call only</string>
|
||||
<string name="nc_call_button_content_description_answer_video_call">Answer as video call</string>
|
||||
<string name="nc_call_button_content_description_switch_to_self_vide">Switch to self video</string>
|
||||
<string name="nc_call_raised_hand">%1$s raised the hand</string>
|
||||
|
||||
<!-- Picture in Picture -->
|
||||
<string name="nc_pip_microphone_mute">Mute microphone</string>
|
||||
|
Loading…
Reference in New Issue
Block a user