mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Update mobile details page layout
This commit is contained in:
@@ -74,7 +74,7 @@ class FilePickerDelegate: NSObject, UIDocumentPickerDelegate {
|
||||
}
|
||||
|
||||
func pickFile() {
|
||||
guard let viewController = UIApplication.shared.keyWindow?.rootViewController else {
|
||||
guard let viewController = UIApplication.shared.windows.last(where: { $0.isKeyWindow })?.rootViewController else {
|
||||
result(FlutterError(code: "fatal",
|
||||
message: "Getting rootViewController failed",
|
||||
details: nil))
|
||||
|
||||
Reference in New Issue
Block a user