mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 06:29:54 +00:00
Only notify voice note progress handler if activity is not null.
This commit is contained in:
committed by
Cody Henthorne
parent
7dc3454b37
commit
34d4c910f7
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user