You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 19, 2025. It is now read-only.
otherButtonTitle = NSLocalizedString(@"Open Settings", @"Go to the settings app");
281
-
}
282
-
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Media Library", @"Title for alert when access to the media library is not granted by the user")
283
-
message:NSLocalizedString(@"This app needs permission to access your device media library in order to add photos and/or video to your posts. Please change the privacy settings if you wish to allow this.", @"Explaining to the user why the app needs access to the device media library.")
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Media Library", @"Title for alert when a generic error happened when loading media")
293
-
message:NSLocalizedString(@"There was a problem when trying to access your media. Please try again later.", @"Explaining to the user there was an generic error accesing media.")
294
-
delegate:self
295
-
cancelButtonTitle:NSLocalizedString(@"OK", "")
296
-
otherButtonTitles:nil];
297
-
alertView.tag = WPMediaCollectionAlertOtherError;
298
-
alertView.delegate = strongSelf;
299
-
[alertView show];
280
+
[strongSelf showError:error];
300
281
});
301
282
}];
302
283
}
303
284
285
+
- (void)showError:(NSError *)error {
286
+
[selfrefreshTitle];
287
+
[self.refreshControl endRefreshing];
288
+
self.collectionView.allowsSelection = YES;
289
+
self.collectionView.scrollEnabled = YES;
290
+
[self.collectionView reloadData];
291
+
NSString *title = NSLocalizedString(@"Media Library", @"Title for alert when a generic error happened when loading media");
292
+
NSString *message = NSLocalizedString(@"There was a problem when trying to access your media. Please try again later.", @"Explaining to the user there was an generic error accesing media.");
otherButtonTitle = NSLocalizedString(@"Open Settings", @"Go to the settings app");
300
+
}
301
+
title = NSLocalizedString(@"Media Library", @"Title for alert when access to the media library is not granted by the user");
302
+
message = NSLocalizedString(@"This app needs permission to access your device media library in order to add photos and/or video to your posts. Please change the privacy settings if you wish to allow this.", @"Explaining to the user why the app needs access to the device media library.");
303
+
tag = WPMediaCollectionAlertMediaLibraryPermissionsNeeded;
0 commit comments