|
@ -193,8 +193,7 @@ public class StoriesService extends BaseService { |
|
|
node.getInt("media_count"), |
|
|
node.getInt("media_count"), |
|
|
false, |
|
|
false, |
|
|
node.optBoolean("has_besties_media"))); |
|
|
node.optBoolean("has_besties_media"))); |
|
|
} |
|
|
|
|
|
catch (Exception e) {} // to cover promotional reels with non-long user pk's |
|
|
|
|
|
|
|
|
} catch (Exception e) {} // to cover promotional reels with non-long user pk's |
|
|
} |
|
|
} |
|
|
final JSONArray broadcasts = new JSONObject(body).getJSONArray("broadcasts"); |
|
|
final JSONArray broadcasts = new JSONObject(body).getJSONArray("broadcasts"); |
|
|
for (int i = 0; i < broadcasts.length(); ++i) { |
|
|
for (int i = 0; i < broadcasts.length(); ++i) { |
|
@ -371,7 +370,8 @@ public class StoriesService extends BaseService { |
|
|
final String url = buildUrl(options); |
|
|
final String url = buildUrl(options); |
|
|
final Call<String> userStoryCall = repository.getUserStory(url); |
|
|
final Call<String> userStoryCall = repository.getUserStory(url); |
|
|
final boolean isLocOrHashtag = options.getType() == StoryViewerOptions.Type.LOCATION || options.getType() == StoryViewerOptions.Type.HASHTAG; |
|
|
final boolean isLocOrHashtag = options.getType() == StoryViewerOptions.Type.LOCATION || options.getType() == StoryViewerOptions.Type.HASHTAG; |
|
|
final boolean isHighlight = options.getType() == StoryViewerOptions.Type.HIGHLIGHT || options.getType() == StoryViewerOptions.Type.STORY_ARCHIVE; |
|
|
|
|
|
|
|
|
final boolean isHighlight = options.getType() == StoryViewerOptions.Type.HIGHLIGHT || options |
|
|
|
|
|
.getType() == StoryViewerOptions.Type.STORY_ARCHIVE; |
|
|
userStoryCall.enqueue(new Callback<String>() { |
|
|
userStoryCall.enqueue(new Callback<String>() { |
|
|
@Override |
|
|
@Override |
|
|
public void onResponse(@NonNull final Call<String> call, @NonNull final Response<String> response) { |
|
|
public void onResponse(@NonNull final Call<String> call, @NonNull final Response<String> response) { |
|
@ -412,7 +412,7 @@ public class StoriesService extends BaseService { |
|
|
callback.onSuccess(null); |
|
|
callback.onSuccess(null); |
|
|
} |
|
|
} |
|
|
} catch (JSONException e) { |
|
|
} catch (JSONException e) { |
|
|
Log.e(TAG, "Error parsing string"); |
|
|
|
|
|
|
|
|
Log.e(TAG, "Error parsing string", e); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|