Browse Source

fb messenger experience

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
committed by GitHub
parent
commit
4cf441773e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/java/awais/instagrabber/utils/ResponseBodyUtils.java

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

@ -265,11 +265,11 @@ public final class ResponseBodyUtils {
final ProfileModel[] userModels = new ProfileModel[usersLen]; final ProfileModel[] userModels = new ProfileModel[usersLen];
for (int j = 0; j < usersLen; ++j) { for (int j = 0; j < usersLen; ++j) {
final JSONObject userObject = users.getJSONObject(j); final JSONObject userObject = users.getJSONObject(j);
userModels[j] = new ProfileModel(userObject.getBoolean("is_private"),
userModels[j] = new ProfileModel(userObject.optBoolean("is_private"),
false, false,
userObject.optBoolean("is_verified"), userObject.optBoolean("is_verified"),
String.valueOf(userObject.get("pk")), String.valueOf(userObject.get("pk")),
userObject.getString("username"),
userObject.optString("username"), // optional cuz fb users
userObject.getString("full_name"), userObject.getString("full_name"),
null, null, null, null,
userObject.getString("profile_pic_url"), userObject.getString("profile_pic_url"),

Loading…
Cancel
Save