kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix crash in onPlaying if fragment is detached.
rodzic
f013f7357f
commit
32b4d11a82
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue