Commit b42605c7 authored by Soomin Lee's avatar Soomin Lee Committed by Jean-Baptiste Kempf

iOS: Fix strange UIAlertAction behaviour on iPads without title

With title setted to nil, the UIAlertAction were misplaced.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent f62a59cc
......@@ -1418,7 +1418,7 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
[invalidSelection addAction:doneAction];
[self presentViewController:invalidSelection animated:YES completion:nil];
} else {
UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertController *alert = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"DELETE_TITLE", nil) message:nil preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *deleteAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"BUTTON_DELETE", nil) style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) {
if (_deleteFromTableView) {
@synchronized (_foundMedia) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment