Comments update
This commit is contained in:
parent
e79c159138
commit
ada936eff6
@ -53,7 +53,6 @@ public class PagePlayAudioBehavior: PageCustomActionHandlerBehavior {
|
|||||||
public func handleAction(type actionType: String?, information: [AnyHashable: Any]?, additionalData: [AnyHashable: Any]?) -> Bool {
|
public func handleAction(type actionType: String?, information: [AnyHashable: Any]?, additionalData: [AnyHashable: Any]?) -> Bool {
|
||||||
|
|
||||||
guard actionType == "playAudio" else { return false }
|
guard actionType == "playAudio" else { return false }
|
||||||
// TODO: Impose Activity Indicator.
|
|
||||||
|
|
||||||
// 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 {
|
||||||
@ -62,9 +61,6 @@ public class PagePlayAudioBehavior: PageCustomActionHandlerBehavior {
|
|||||||
} else {
|
} else {
|
||||||
Self.activeAudioPlayerDelegate?.play()
|
Self.activeAudioPlayerDelegate?.play()
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Tell Template to update this cell (needs to be built). Currently it updates all cells.
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user