From 19968651e9e4702c18d6aa57eabd8a58fef2ff40 Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Tue, 9 Jun 2015 16:44:15 +0200 Subject: [PATCH] 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. --- Classes/BITFeedbackManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/BITFeedbackManager.m b/Classes/BITFeedbackManager.m index f6dc437f4b..1abef0b78b 100644 --- a/Classes/BITFeedbackManager.m +++ b/Classes/BITFeedbackManager.m @@ -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(), ^{