Search in sources :

Example 1 with WebRtcCallViewModel

use of org.thoughtcrime.securesms.components.webrtc.WebRtcCallViewModel in project Signal-Android by WhisperSystems.

the class CallParticipantsListDialog method onActivityCreated.

@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    final WebRtcCallViewModel viewModel = ViewModelProviders.of(requireActivity()).get(WebRtcCallViewModel.class);
    initializeList();
    viewModel.getCallParticipantsState().observe(getViewLifecycleOwner(), this::updateList);
}
Also used : WebRtcCallViewModel(org.thoughtcrime.securesms.components.webrtc.WebRtcCallViewModel)

Example 2 with WebRtcCallViewModel

use of org.thoughtcrime.securesms.components.webrtc.WebRtcCallViewModel in project Signal-Android by signalapp.

the class CallParticipantsListDialog method onActivityCreated.

@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    final WebRtcCallViewModel viewModel = ViewModelProviders.of(requireActivity()).get(WebRtcCallViewModel.class);
    initializeList();
    viewModel.getCallParticipantsState().observe(getViewLifecycleOwner(), this::updateList);
}
Also used : WebRtcCallViewModel(org.thoughtcrime.securesms.components.webrtc.WebRtcCallViewModel)

Aggregations

WebRtcCallViewModel (org.thoughtcrime.securesms.components.webrtc.WebRtcCallViewModel)2