Skip to content

Commit

Permalink
Merge branch 'fix-12.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Mar 27, 2014
2 parents d7f8edb + 29c590f commit 0dd18b8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ Changelog

All dates are in the European Central timezone.

Version 12.4 *(2014-03-27)*
---------------------------

* FIX Full trakt sync not downloading unwatched and uncollected episodes correctly.
* FIX Crash when adding movie.

Version 12.3 *(2014-03-08)*
---------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,9 @@ protected Integer doInBackground(Integer... params) {

@Override
protected void onPostExecute(Integer movieTmdbId) {
// Guarding against odd NPE, https://github.com/UweTrottmann/SeriesGuide/issues/371
EventBus bus = EventBus.getDefault();
if (bus != null) {
bus.post(new MovieChangedEvent(movieTmdbId));
// guard against NPE https://github.com/UweTrottmann/SeriesGuide/issues/371
if (movieTmdbId != null) {
EventBus.getDefault().post(new MovieChangedEvent(movieTmdbId));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,13 @@ public static void applyEpisodeFlagChanges(Context context,
episodeFlag = EpisodeFlags.WATCHED;
episodeDefaultFlag = EpisodeFlags.UNWATCHED;
// do not remove flag of skipped episodes, only for watched ones
clearSelection = SeriesGuideContract.Episodes.SEASON + "=? AND "
+ SeriesGuideContract.Episodes.WATCHED + "=" + EpisodeFlags.WATCHED;
clearSelection = SeriesGuideContract.Episodes.WATCHED + "=" + EpisodeFlags.WATCHED;
break;
case SeriesGuideContract.Episodes.COLLECTED:
episodeFlag = 1;
episodeDefaultFlag = 0;
// only remove flags for already collected episodes
clearSelection = SeriesGuideContract.Episodes.SEASON + "=? AND "
+ SeriesGuideContract.Episodes.COLLECTED + "=1";
clearSelection = SeriesGuideContract.Episodes.COLLECTED + "=1";
break;
default:
return;
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ ext {
compileSdkVersion = 19
buildToolsVersion = '19.0.3'

versionCode = 240
versionName = '12.3'
versionCode = 244
versionName = '12.4'
}

ext.libraries = [
Expand Down

0 comments on commit 0dd18b8

Please sign in to comment.