mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Include statusbar in screenshots by default
This commit is contained in:
@@ -317,10 +317,8 @@ typedef NS_ENUM(NSInteger, BITFeedbackObservationMode) {
|
||||
[[BITHockeyManager sharedHockeyManager].feedbackManager showFeedbackComposeViewWithGeneratedScreenshot];
|
||||
|
||||
@see feedbackObservationMode
|
||||
|
||||
@param includeStatusBar BOOL if the screenshot should include the satusbar (if present) or not
|
||||
*/
|
||||
- (void)showFeedbackComposeViewWithGeneratedScreenshotWithStatusBar:(BOOL)includeStatusBar;
|
||||
- (void)showFeedbackComposeViewWithGeneratedScreenshot;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -243,8 +243,8 @@
|
||||
|
||||
}
|
||||
|
||||
- (void)showFeedbackComposeViewWithGeneratedScreenshotWithStatusBar:(BOOL)includeStatusBar {
|
||||
UIImage *screenshot = bit_screenshot(includeStatusBar);
|
||||
- (void)showFeedbackComposeViewWithGeneratedScreenshot {
|
||||
UIImage *screenshot = bit_screenshot(YES);
|
||||
[self showFeedbackComposeViewWithPreparedItems:@[screenshot]];
|
||||
}
|
||||
|
||||
@@ -1132,7 +1132,7 @@
|
||||
|
||||
- (void)screenshotTripleTap:(UITapGestureRecognizer *)tapRecognizer {
|
||||
if (tapRecognizer.state == UIGestureRecognizerStateRecognized){
|
||||
[self showFeedbackComposeViewWithGeneratedScreenshotWithStatusBar:NO];
|
||||
[self showFeedbackComposeViewWithGeneratedScreenshot];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user