mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 14:40:22 +00:00
Fix crash in onPlaying if fragment is detached.
This commit is contained in:
@@ -63,7 +63,7 @@ public final class VideoMediaPreviewFragment extends MediaPreviewFragment {
|
||||
|
||||
@Override
|
||||
public void onPlaying() {
|
||||
if (!isVideoGif && requireActivity() instanceof VoiceNoteMediaControllerOwner) {
|
||||
if (!isVideoGif && getActivity() instanceof VoiceNoteMediaControllerOwner) {
|
||||
((VoiceNoteMediaControllerOwner) requireActivity()).getVoiceNoteMediaController().pausePlayback();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user