Fix crash in onPlaying if fragment is detached.
This commit is contained in:
parent
f013f7357f
commit
32b4d11a82
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue