kopia lustrzana https://github.com/ryukoposting/Signal-Android
Only notify voice note progress handler if activity is not null.
rodzic
7dc3454b37
commit
34d4c910f7
|
@ -245,7 +245,7 @@ public class VoiceNoteMediaController implements DefaultLifecycleObserver {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void notifyProgressEventHandler() {
|
private void notifyProgressEventHandler() {
|
||||||
if (progressEventHandler == null) {
|
if (progressEventHandler == null && activity != null) {
|
||||||
progressEventHandler = new ProgressEventHandler(getMediaController(), voiceNotePlaybackState);
|
progressEventHandler = new ProgressEventHandler(getMediaController(), voiceNotePlaybackState);
|
||||||
progressEventHandler.sendEmptyMessage(0);
|
progressEventHandler.sendEmptyMessage(0);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue