Skip to content

Commit a54f78c

Browse files
author
Mike Amaral
committed
Clear the app badge when the comic list appears.
1 parent 6918608 commit a54f78c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/View Controllers/Comic List/ComicListViewController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ - (void)viewDidAppear:(BOOL)animated {
8181
[super viewDidAppear:animated];
8282

8383
[[GTTracker sharedInstance] sendScreenEventWithTitle:@"Comic List"];
84+
85+
// Clear the app badge here, as we can be reasonably sure at this point anything new
86+
// will have been seen, and we won't run into annoying issues related to the app
87+
// life-cycle that we've experienced before.
88+
[UIApplication sharedApplication].applicationIconBadgeNumber = 0;
8489
}
8590

8691
- (void)viewWillLayoutSubviews {

0 commit comments

Comments
 (0)