Another fix for screenshot feature in feedback

Older devices (iPhone 4S and iPad 3 running iOS 8) would still show a previously captured screenshot instead of the current one, because it takes too long to get the image from the Asset Library than the assumed 0.5s. Increasing to 1.5s fixes the issue also for these.
This commit is contained in:
Andreas Linde
2015-06-09 16:44:15 +02:00
parent 070170dea1
commit 19968651e9

View File

@@ -1122,7 +1122,7 @@ NSString *const kBITFeedbackUpdateAttachmentThumbnail = @"BITFeedbackUpdateAttac
}
-(void)screenshotNotificationReceived:(NSNotification *)notification {
double amountOfSeconds = 0.5;
double amountOfSeconds = 1.5;
dispatch_time_t delayTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(amountOfSeconds * NSEC_PER_SEC));
dispatch_after(delayTime, dispatch_get_main_queue(), ^{