Skip to content

Commit

Permalink
Fix #6232 - Crashes when trying to add account picture (#6484)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhasin2 authored and garvankeeley committed May 6, 2020
1 parent 36af6cc commit 2f65dbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Client/Frontend/Widgets/PhotonActionSheet/AppMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ extension PhotonActionSheetProtocol {
settingsTableViewController.settingsDelegate = vcDelegate

let controller = ThemedNavigationController(rootViewController: settingsTableViewController)
// On iPhone iOS13 the WKWebview crashes while presenting file picker if its not full screen. Ref #6232
if UIDevice.current.userInterfaceIdiom == .phone {
controller.modalPresentationStyle = .fullScreen
}
controller.presentingModalViewControllerDelegate = vcDelegate

// Wait to present VC in an async dispatch queue to prevent a case where dismissal
Expand Down

0 comments on commit 2f65dbe

Please sign in to comment.