Skip to content

Commit

Permalink
Merge pull request #10 from flurischt/master
Browse files Browse the repository at this point in the history
Display "kindling" feeds that were not added to a group
  • Loading branch information
phubbard committed Mar 18, 2013
2 parents a3f6498 + d3f6ac6 commit 6adfa17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/net/phfactor/meltdown/MeltdownApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class MeltdownApp extends Application implements OnSharedPreferenceChange

static final int ORPHAN_ID = 8675309;
static final int SPARKS_ID = 8675310;
static final int KINDLING_ID = 8675311;

private List<RssGroup> groups;
private List<RssFeed> feeds;
Expand Down Expand Up @@ -436,6 +437,8 @@ public void onCreate()
this.groups.add(orphans);
RssGroup sparks = new RssGroup("Sparks", SPARKS_ID);
this.groups.add(sparks);
RssGroup kindling = new RssGroup("Kindling", KINDLING_ID);
this.groups.add(kindling);

startUpdates();
Log.i(TAG, "App init completed.");
Expand Down Expand Up @@ -664,6 +667,11 @@ else if (feed.is_spark)
else
Log.d(TAG, "Sparks disabled, not saving item " + item.id);
}
else
{
Log.d(TAG, "Kindling item without group found for post ID " + item.id + " " + item.title);
group = findGroupById(KINDLING_ID);
}
}

if(group != null)
Expand Down

0 comments on commit 6adfa17

Please sign in to comment.