mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix more warnings
This commit is contained in:
@@ -7,5 +7,5 @@ CABasicAnimation * _Nonnull makeSpringAnimationImpl(NSString * _Nonnull keyPath)
|
||||
CABasicAnimation * _Nonnull makeSpringBounceAnimationImpl(NSString * _Nonnull keyPath, CGFloat initialVelocity, CGFloat damping);
|
||||
CGFloat springAnimationValueAtImpl(CABasicAnimation * _Nonnull animation, CGFloat t);
|
||||
|
||||
UIBlurEffect *makeCustomZoomBlurEffectImpl(bool isLight);
|
||||
UIBlurEffect * _Nonnull makeCustomZoomBlurEffectImpl(bool isLight);
|
||||
void applySmoothRoundedCornersImpl(CALayer * _Nonnull layer);
|
||||
|
||||
@@ -302,20 +302,6 @@ static bool notyfyingShiftState = false;
|
||||
|
||||
@end
|
||||
|
||||
static NSString *TGEncodeText(NSString *string, int key)
|
||||
{
|
||||
NSMutableString *result = [[NSMutableString alloc] init];
|
||||
|
||||
for (int i = 0; i < (int)[string length]; i++)
|
||||
{
|
||||
unichar c = [string characterAtIndex:i];
|
||||
c += key;
|
||||
[result appendString:[NSString stringWithCharacters:&c length:1]];
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
void applyKeyboardAutocorrection(UITextView * _Nonnull textView) {
|
||||
NSRange rangeCopy = textView.selectedRange;
|
||||
NSRange fakeRange = rangeCopy;
|
||||
|
||||
@@ -16,6 +16,12 @@ static NSMutableArray *postDeviceDidChangeOrientationBlocks() {
|
||||
|
||||
static bool _isDeviceRotating = false;
|
||||
|
||||
@interface UIView (OrientationChangeDeps)
|
||||
|
||||
- (void)_updateToInterfaceOrientation:(int)arg1 duration:(double)arg2 force:(BOOL)arg3;
|
||||
|
||||
@end
|
||||
|
||||
@implementation UIWindow (OrientationChange)
|
||||
|
||||
+ (void)load {
|
||||
@@ -114,4 +120,8 @@ static bool _isDeviceRotating = false;
|
||||
return _isDeviceRotating;
|
||||
}
|
||||
|
||||
- (void)_updateToInterfaceOrientation:(int)arg1 duration:(double)arg2 force:(BOOL)arg3 {
|
||||
[super _updateToInterfaceOrientation:arg1 duration:arg2 force:arg3];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user