Only notify voice note progress handler if activity is not null.

fork-5.53.8
Alex Hart 2021-12-07 11:42:34 -04:00 zatwierdzone przez Cody Henthorne
rodzic 7dc3454b37
commit 34d4c910f7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -245,7 +245,7 @@ public class VoiceNoteMediaController implements DefaultLifecycleObserver {
}
private void notifyProgressEventHandler() {
if (progressEventHandler == null) {
if (progressEventHandler == null && activity != null) {
progressEventHandler = new ProgressEventHandler(getMediaController(), voiceNotePlaybackState);
progressEventHandler.sendEmptyMessage(0);
}