Updating unread badge counts on marking feeds as read and on exiting the app.

This commit is contained in:
Samuel Clay 2017-06-06 12:42:38 -07:00
parent 8a91f0270d
commit 48e2a54ced
2 changed files with 14 additions and 0 deletions

View file

@ -255,6 +255,18 @@
}
}
- (void)applicationWillResignActive:(UIApplication *)application {
[self.feedsViewController refreshHeaderCounts];
}
- (void)applicationWillTerminate:(UIApplication *)application {
[self.feedsViewController refreshHeaderCounts];
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
[self.feedsViewController refreshHeaderCounts];
}
- (void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void (^)(BOOL))completionHandler {
completionHandler([self handleShortcutItem:shortcutItem]);
}

View file

@ -1354,6 +1354,8 @@ heightForHeaderInSection:(NSInteger)section {
[self.feedTitlesTable reloadRowsAtIndexPaths:@[indexPath]
withRowAnimation:UITableViewRowAnimationFade];
[self.feedTitlesTable endUpdates];
[self refreshHeaderCounts];
}
}