fix missing error toast on failed social calls

This commit is contained in:
dosiecki 2017-08-29 17:05:41 -07:00
parent 69991e711d
commit f4fa93572c

View file

@ -485,22 +485,22 @@ public class ReadingAction implements Serializable {
}
if (storiesResponse != null) {
result = storiesResponse;
if (storiesResponse.story != null) {
result = storiesResponse;
dbHelper.updateStory(storiesResponse, true);
impact |= NbActivity.UPDATE_SOCIAL;
} else {
com.newsblur.util.Log.w(this, "failed to refresh story data after action");
}
impact |= NbActivity.UPDATE_SOCIAL;
}
if (commentResponse != null) {
result = commentResponse;
if (commentResponse.comment != null) {
result = commentResponse;
dbHelper.updateComment(commentResponse, storyId);
impact |= NbActivity.UPDATE_SOCIAL;
} else {
com.newsblur.util.Log.w(this, "failed to refresh comment data after action");
}
impact |= NbActivity.UPDATE_SOCIAL;
}
NbActivity.updateAllActivities(impact);