mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Video avatar fixes
This commit is contained in:
@@ -82,6 +82,13 @@ const CGFloat TGPhotoEditorToolbarSize = 49.0f;
|
||||
}
|
||||
}
|
||||
|
||||
- (bool)hasOnScreenNavigation {
|
||||
bool hasOnScreenNavigation = false;
|
||||
if (iosMajorVersion() >= 11)
|
||||
hasOnScreenNavigation = (self.viewLoaded && self.view.safeAreaInsets.bottom > FLT_EPSILON) || self.context.safeAreaInset.bottom > FLT_EPSILON;
|
||||
return hasOnScreenNavigation;
|
||||
}
|
||||
|
||||
- (UIInterfaceOrientation)effectiveOrientation {
|
||||
return [self effectiveOrientation:self.interfaceOrientation];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user