|
|
@ -193,8 +193,7 @@ public class StoriesService extends BaseService { |
|
|
|
node.getInt("media_count"), |
|
|
|
false, |
|
|
|
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"); |
|
|
|
for (int i = 0; i < broadcasts.length(); ++i) { |
|
|
@ -371,7 +370,8 @@ public class StoriesService extends BaseService { |
|
|
|
final String url = buildUrl(options); |
|
|
|
final Call<String> userStoryCall = repository.getUserStory(url); |
|
|
|
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>() { |
|
|
|
@Override |
|
|
|
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); |
|
|
|
} |
|
|
|
} catch (JSONException e) { |
|
|
|
Log.e(TAG, "Error parsing string"); |
|
|
|
Log.e(TAG, "Error parsing string", e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|