mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +00:00
Fix: iOS share extension not detecting new devices after a while
This commit is contained in:
1 parent
734cf766d5
commit
fdc19b6f62
4 files changed
+19
-17
No files matched your search
@@ -15,7 +15,7 @@ class ShareViewController: UIViewController {
|
||||
|
||||
loadAttachments(with: extensionContext, loadedItems: { [self] result in
|
||||
|
||||
log("ShareViewController: Loaded attachments: \(result)")
|
||||
log("[ShareViewController] Loaded attachments: \(result)")
|
||||
|
||||
var attachmentDetails = result
|
||||
attachmentDetails.closeView = { [weak self] in
|
||||
@@ -48,5 +48,12 @@ class ShareViewController: UIViewController {
|
||||
|
||||
hostingController.didMove(toParent: self)
|
||||
}
|
||||
|
||||
|
||||
override func viewDidDisappear(_ animated: Bool) {
|
||||
NearbyConnectionManager.shared.stopDeviceDiscovery()
|
||||
|
||||
super.viewDidDisappear(animated)
|
||||
log("[ShareViewController] Disappeared view.")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user