mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Updating unread badge counts on marking feeds as read and on exiting the app.
This commit is contained in:
parent
8a91f0270d
commit
48e2a54ced
2 changed files with 14 additions and 0 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
|
@ -1354,6 +1354,8 @@ heightForHeaderInSection:(NSInteger)section {
|
|||
[self.feedTitlesTable reloadRowsAtIndexPaths:@[indexPath]
|
||||
withRowAnimation:UITableViewRowAnimationFade];
|
||||
[self.feedTitlesTable endUpdates];
|
||||
|
||||
[self refreshHeaderCounts];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue