mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Cleanup
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
|
||||
#import "TGModernBarButton.h"
|
||||
#import <LegacyComponents/TGMediaPickerToolbarView.h>
|
||||
#import "TGMediaAssetsTipView.h"
|
||||
|
||||
#import <LegacyComponents/TGMediaAsset+TGMediaEditableItem.h>
|
||||
#import <LegacyComponents/TGMediaAssetImageSignals.h>
|
||||
@@ -586,23 +585,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
|
||||
if (_intent == TGMediaAssetsControllerSendFileIntent && self.shouldShowFileTipIfNeeded && iosMajorVersion() >= 7)
|
||||
{
|
||||
if (![[[NSUserDefaults standardUserDefaults] objectForKey:@"didShowDocumentPickerTip_v2"] boolValue])
|
||||
{
|
||||
[[NSUserDefaults standardUserDefaults] setObject:@true forKey:@"didShowDocumentPickerTip_v2"];
|
||||
|
||||
TGMediaAssetsTipView *tipView = [[TGMediaAssetsTipView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, self.view.bounds.size.width, self.view.bounds.size.height)];
|
||||
tipView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
[self.navigationController.view addSubview:tipView];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (NSArray *)resultSignalsWithCurrentItem:(TGMediaAsset *)currentItem descriptionGenerator:(id (^)(id, NSString *, NSArray *, NSString *))descriptionGenerator
|
||||
{
|
||||
bool storeAssets = (_editingContext != nil) && self.shouldStoreAssets;
|
||||
|
||||
Reference in New Issue
Block a user