Skip to content

Commit

Permalink
Merge pull request #1996 from wikimedia/bug/disable_w_icon_popover
Browse files Browse the repository at this point in the history
Disable w icon popover
  • Loading branch information
joewalsh committed Dec 15, 2017
2 parents e1e9e9d + 62c4334 commit 9cad536
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Wikipedia/Code/WMFArticleViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1869,11 +1869,12 @@ - (NSString *)analyticsName {
#pragma mark - One-time toolbar item popover tips

- (BOOL)shouldShowWIconPopover {
if (!self.navigationController || [[NSUserDefaults standardUserDefaults] wmf_didShowWIconPopover]) {
return NO;
} else {
return YES;
}
return NO;
// if (!self.navigationController || [[NSUserDefaults standardUserDefaults] wmf_didShowWIconPopover]) {
// return NO;
// } else {
// return YES;
// }
}

- (void)showWIconPopoverIfNecessary {
Expand All @@ -1886,9 +1887,6 @@ - (void)showWIconPopoverIfNecessary {

- (void)cancelWIconPopoverDisplay {
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(showWIconPopover) object:nil];
if (self.presentedViewController) {
[self dismissViewControllerAnimated:NO completion:NULL];
}
}

- (void)showWIconPopover {
Expand Down

0 comments on commit 9cad536

Please sign in to comment.