Browse Source

Set feed item as saved or not from response. Closes https://github.com/austinhuang0131/barinsta/issues/369

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
06f4ab56c8
  1. 2
      app/src/main/java/awais/instagrabber/utils/ResponseBodyUtils.java

2
app/src/main/java/awais/instagrabber/utils/ResponseBodyUtils.java

@ -642,7 +642,7 @@ public final class ResponseBodyUtils {
.setCommentsCount(itemJson.optInt("comment_count"))
.setTimestamp(itemJson.optLong("taken_at", -1))
.setLiked(itemJson.optBoolean("has_liked"))
// .setBookmarked()
.setBookmarked(itemJson.optBoolean("has_viewer_saved"))
.setLikesCount(itemJson.optInt("like_count"))
.setLocationName(locationJson != null ? locationJson.optString("name") : null)
.setLocationId(locationJson != null ? String.valueOf(locationJson.optLong("pk")) : null)

Loading…
Cancel
Save