mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Disable drawing in sign up screen
This commit is contained in:
@@ -2604,15 +2604,12 @@
|
||||
}]];
|
||||
}
|
||||
|
||||
+ (TGPhotoEditorTab)defaultTabsForAvatarIntent
|
||||
+ (TGPhotoEditorTab)defaultTabsForAvatarIntent:(bool)hasStickers
|
||||
{
|
||||
static dispatch_once_t onceToken;
|
||||
static TGPhotoEditorTab avatarTabs = TGPhotoEditorNoneTab;
|
||||
dispatch_once(&onceToken, ^
|
||||
{
|
||||
if (iosMajorVersion() >= 7)
|
||||
avatarTabs = TGPhotoEditorCropTab | TGPhotoEditorPaintTab | TGPhotoEditorToolsTab;
|
||||
});
|
||||
TGPhotoEditorTab avatarTabs = TGPhotoEditorCropTab | TGPhotoEditorToolsTab;
|
||||
if (hasStickers) {
|
||||
avatarTabs |= TGPhotoEditorPaintTab;
|
||||
}
|
||||
return avatarTabs;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user