Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void handleVideoView(){
- callVideoApi().enqueue(new Callback<Video>() {
- @Override
- public void onResponse(Call<Video> call, Response<Video> response) {
- List<com.example.regent.moviegalleriapart_2.model.Video.Result> results = fetchVideos(response);
- resultList.addAll(results);
- videoAdapter.notifyDataSetChanged();
- Log.i(TAG, "The size of the video list is: " + resultList.size());
- }
- @Override
- public void onFailure(Call<Video> call, Throwable t) {
- Log.d(TAG, "Error message is: " + t.getMessage());
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement