Merge branch 'bugfix/CXTDT-497252' into 'develop'
bug fix for earlier OS versions ### Summary Fixing share action for older iOS versions. ### JIRA Ticket https://onejira.verizon.com/browse/CXTDT-497252 Co-authored-by: Scott Pfeil <Scott.Pfeil3@verizonwireless.com> See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core/-/merge_requests/299
This commit is contained in:
commit
dd0688985e
@ -27,9 +27,18 @@ open class ActionShareHandler: MVMCoreActionHandlerProtocol {
|
||||
// Activity was completed, considered finished.
|
||||
continuation.resume()
|
||||
} else if let error = error {
|
||||
// Activity sharing failed.
|
||||
continuation.resume(throwing: error)
|
||||
} else {
|
||||
continuation.resume()
|
||||
// Activity was probably cancelled
|
||||
if #available(iOS 16.4, *) {
|
||||
continuation.resume()
|
||||
} else if let _ = activityType {
|
||||
// Pre iOS 16.4, this block gets called multiple times. Each time a specific activityType was selected and was cancelled, and when the whole share activity itself is cancelled.
|
||||
return
|
||||
} else {
|
||||
continuation.resume()
|
||||
}
|
||||
}
|
||||
}
|
||||
Task(priority: .high) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user