Changes are per review comments
This commit is contained in:
parent
bb10fdf818
commit
f74372c56e
@ -7,7 +7,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
public class ListLeftVariableIconWithRightCaretBodyTextModel: ListItemModel, MoleculeModelProtocol {
|
public class ListLeftVariableIconWithRightCaretBodyTextModel: ListItemModel, ParentMoleculeModelProtocol {
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
// MARK: - Properties
|
// MARK: - Properties
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
|
|||||||
@ -35,7 +35,7 @@ public class PagePlayAudioBehavior: PageCustomActionHandlerBehavior {
|
|||||||
// MARK: - Delegate
|
// MARK: - Delegate
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
var delegate: MVMCoreUIDelegateObject?
|
weak var delegate: MVMCoreUIDelegateObject?
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Init
|
// MARK: - Init
|
||||||
@ -57,7 +57,6 @@ public class PagePlayAudioBehavior: PageCustomActionHandlerBehavior {
|
|||||||
// Update the model. play -> pause OR pause -> play
|
// Update the model. play -> pause OR pause -> play
|
||||||
if Self.activeAudioPlayerDelegate?.isPlaying ?? false {
|
if Self.activeAudioPlayerDelegate?.isPlaying ?? false {
|
||||||
Self.activeAudioPlayerDelegate?.pause()
|
Self.activeAudioPlayerDelegate?.pause()
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Self.activeAudioPlayerDelegate?.play()
|
Self.activeAudioPlayerDelegate?.play()
|
||||||
}
|
}
|
||||||
@ -65,6 +64,7 @@ public class PagePlayAudioBehavior: PageCustomActionHandlerBehavior {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public func onPageHidden(_ delegateObject: MVMCoreUIDelegateObject?) {
|
public func onPageHidden(_ delegateObject: MVMCoreUIDelegateObject?) {
|
||||||
// TODO: Stop player
|
//Stop player
|
||||||
|
Self.activeAudioPlayerDelegate?.pause()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user