Changes unTrack to untrack

This commit is contained in:
ericdecanini 2022-03-17 16:40:35 +01:00
parent 36564d3657
commit 00bced9500
3 changed files with 3 additions and 3 deletions

View File

@ -1244,7 +1244,7 @@ class TimelineFragment @Inject constructor(
override fun onPause() { override fun onPause() {
super.onPause() super.onPause()
notificationDrawerManager.setCurrentRoom(null) notificationDrawerManager.setCurrentRoom(null)
voiceMessagePlaybackTracker.unTrack(VoiceMessagePlaybackTracker.RECORDING_ID) voiceMessagePlaybackTracker.untrack(VoiceMessagePlaybackTracker.RECORDING_ID)
if (withState(messageComposerViewModel) { it.isVoiceRecording } && requireActivity().isChangingConfigurations) { if (withState(messageComposerViewModel) { it.isVoiceRecording } && requireActivity().isChangingConfigurations) {
// we're rotating, maintain any active recordings // we're rotating, maintain any active recordings

View File

@ -46,7 +46,7 @@ class VoiceMessagePlaybackTracker @Inject constructor() {
} }
} }
fun unTrack(id: String) { fun untrack(id: String) {
listeners.remove(id) listeners.remove(id)
} }

View File

@ -128,7 +128,7 @@ abstract class MessageVoiceItem : AbsMessageItem<MessageVoiceItem.Holder>() {
super.unbind(holder) super.unbind(holder)
contentUploadStateTrackerBinder.unbind(attributes.informationData.eventId) contentUploadStateTrackerBinder.unbind(attributes.informationData.eventId)
contentDownloadStateTrackerBinder.unbind(mxcUrl) contentDownloadStateTrackerBinder.unbind(mxcUrl)
voiceMessagePlaybackTracker.unTrack(attributes.informationData.eventId) voiceMessagePlaybackTracker.untrack(attributes.informationData.eventId)
} }
override fun getViewStubId() = STUB_ID override fun getViewStubId() = STUB_ID