Skip to content

Commit

Permalink
Fix discard alert style on iPad
Browse files Browse the repository at this point in the history
  • Loading branch information
bjtitus committed Apr 20, 2021
1 parent 548b0ab commit 632c2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WordPress/Classes/Services/Stories/CameraHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CameraHandler: CameraControllerDelegate {
let cancelTitle = NSLocalizedString("Keep Editing", comment: "Button shown if there are unsaved changes and the author is trying to move away from the post.")
let discardTitle = NSLocalizedString("Discard", comment: "Button shown if there are unsaved changes and the author is trying to move away from the post.")

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

// Button: Keep editing
Expand Down

0 comments on commit 632c2c6

Please sign in to comment.