mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-30 15:10:56 +00:00
Merge branch 'develop' of github.com:bitstadium/HockeySDK-iOS into develop
This commit is contained in:
commit
4c7ab219d3
@ -108,7 +108,7 @@ NSString *const kBITCrashManagerStatus = @"BITCrashManagerStatus";
|
||||
|
||||
NSString *testValue = [[NSUserDefaults standardUserDefaults] stringForKey:kBITCrashManagerStatus];
|
||||
if (testValue) {
|
||||
_crashManagerStatus = [[NSUserDefaults standardUserDefaults] integerForKey:kBITCrashManagerStatus];
|
||||
_crashManagerStatus = (BITCrashManagerStatus) [[NSUserDefaults standardUserDefaults] integerForKey:kBITCrashManagerStatus];
|
||||
} else {
|
||||
// migrate previous setting if available
|
||||
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"BITCrashAutomaticallySendReports"]) {
|
||||
@ -198,7 +198,7 @@ NSString *const kBITCrashManagerStatus = @"BITCrashManagerStatus";
|
||||
if ([rootObj objectForKey:kBITCrashApprovedReports])
|
||||
[_approvedCrashReports setDictionary:[rootObj objectForKey:kBITCrashApprovedReports]];
|
||||
} else {
|
||||
BITHockeyLog(@"ERROR: Reading settings. %@", errorString);
|
||||
BITHockeyLog(@"ERROR: Reading crash manager settings.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -602,7 +602,7 @@ static NSInteger binaryImageSort(id binary1, id binary2, void *context) {
|
||||
index += range.length - 1;
|
||||
}
|
||||
if (index > 32) {
|
||||
imageName = [NSString stringWithFormat:@"%@...", [imageName substringToIndex:index - 1]];
|
||||
imageName = [NSString stringWithFormat:@"%@... ", [imageName substringToIndex:index - 1]];
|
||||
index += 3;
|
||||
break;
|
||||
}
|
||||
|
@ -72,7 +72,7 @@
|
||||
self.email = [decoder decodeObjectForKey:@"email"];
|
||||
self.date = [decoder decodeObjectForKey:@"date"];
|
||||
self.id = [decoder decodeObjectForKey:@"id"];
|
||||
self.status = [decoder decodeIntegerForKey:@"status"];
|
||||
self.status = (BITFeedbackMessageStatus)[decoder decodeIntegerForKey:@"status"];
|
||||
self.userMessage = [decoder decodeBoolForKey:@"userMessage"];
|
||||
self.token = [decoder decodeObjectForKey:@"token"];
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ UIImage *bit_imageToFitSize(UIImage *inputImage, CGSize fitSize, BOOL honorScale
|
||||
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
|
||||
CGContextRef context = CGBitmapContextCreate(NULL, scaledWidth, scaledHeight, 8, (fitSize.width * 4),
|
||||
colorSpace, kCGImageAlphaPremultipliedLast);
|
||||
CGImageRef sourceImg = CGImageCreateWithImageInRect([inputImage CGImage], sourceRect);
|
||||
sourceImg = CGImageCreateWithImageInRect([inputImage CGImage], sourceRect);
|
||||
CGContextDrawImage(context, destRect, sourceImg);
|
||||
CGImageRelease(sourceImg);
|
||||
CGImageRef finalImage = CGBitmapContextCreateImage(context);
|
||||
@ -409,13 +409,13 @@ UIImage *bit_roundedCornerImage(UIImage *inputImage, NSInteger cornerSize, NSInt
|
||||
UIImage *image = bit_imageWithAlpha(inputImage);
|
||||
|
||||
// Build a context that's the same dimensions as the new size
|
||||
CGContextRef context = CGBitmapContextCreate(NULL,
|
||||
image.size.width,
|
||||
image.size.height,
|
||||
CGImageGetBitsPerComponent(image.CGImage),
|
||||
0,
|
||||
CGImageGetColorSpace(image.CGImage),
|
||||
CGImageGetBitmapInfo(image.CGImage));
|
||||
context = CGBitmapContextCreate(NULL,
|
||||
image.size.width,
|
||||
image.size.height,
|
||||
CGImageGetBitsPerComponent(image.CGImage),
|
||||
0,
|
||||
CGImageGetColorSpace(image.CGImage),
|
||||
CGImageGetBitmapInfo(image.CGImage));
|
||||
|
||||
// Create a clipping path with rounded corners
|
||||
CGContextBeginPath(context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user