remove buggy notification code

This commit is contained in:
dosiecki 2017-01-02 18:53:48 -08:00
parent 213f31b448
commit 865f8e5c0e
2 changed files with 3 additions and 6 deletions

View file

@ -125,8 +125,6 @@ public class NBSyncService extends Service {
Set<String> orphanFeedIds;
Set<String> disabledFeedIds;
Set<String> notifyFeedIds;
private ExecutorService primaryExecutor;
CleanupService cleanupService;
OriginalTextService originalTextService;
@ -418,7 +416,6 @@ public class NBSyncService extends Service {
Set<String> debugFeedIdsFromFeeds = new HashSet<String>();
orphanFeedIds = new HashSet<String>();
disabledFeedIds = new HashSet<String>();
notifyFeedIds = new HashSet<String>();
try {
FeedFolderResponse feedResponse = apiManager.getFolderFeedMapping(true);
@ -477,9 +474,6 @@ public class NBSyncService extends Service {
disabledFeedIds.add(feed.feedId);
}
feedValues.add(feed.getValues());
if (feed.isNotify()) {
notifyFeedIds.add(feed.feedId);
}
}
// also add the implied zero-id feed
feedValues.add(Feed.getZeroFeed().getValues());

View file

@ -142,12 +142,15 @@ public class UnreadsService extends SubService {
}
for (Story story : response.stories) {
/* need to access feed.isNotify() somehow
if (parent.notifyFeedIds.contains(story.feedId)) {
// for now, only notify stories with 1+ intel
if (story.intelligence.calcTotalIntel() > 0) {
story.notify = true;
}
}
*/
}
parent.insertStories(response);