Skip to content

Commit 632c2c6

Browse files
committed
Fix discard alert style on iPad
1 parent 548b0ab commit 632c2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/Classes/Services/Stories/CameraHandler.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CameraHandler: CameraControllerDelegate {
2626
let cancelTitle = NSLocalizedString("Keep Editing", comment: "Button shown if there are unsaved changes and the author is trying to move away from the post.")
2727
let discardTitle = NSLocalizedString("Discard", comment: "Button shown if there are unsaved changes and the author is trying to move away from the post.")
2828

29-
let alertController = UIAlertController(title: title, message: nil, preferredStyle: .actionSheet)
29+
let alertController = UIAlertController(title: title, message: nil, preferredStyle: UIDevice.isPad() ? .alert : .actionSheet)
3030
alertController.view.accessibilityIdentifier = "post-has-changes-alert"
3131

3232
// Button: Keep editing

0 commit comments

Comments
 (0)