Skip to content
This repository has been archived by the owner on May 1, 2022. It is now read-only.

Commit

Permalink
fetching the recently updated animes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawkush committed Jul 20, 2018
1 parent 25d29fb commit 24ec457
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package com.example.ankush.rawanime.fetch;

import android.util.Log;

import com.example.ankush.rawanime.models.AnimeModel;
Expand All @@ -11,11 +13,11 @@
import java.util.ArrayList;
import java.util.List;

public class FetchRecentlyUploaded {
public class FetchRecentlyUpdated {


public List<AnimeModel> list;
public FetchRecentlyUploaded(){
public FetchRecentlyUpdated(){
list= new ArrayList<>();

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import com.example.ankush.rawanime.R;
import com.example.ankush.rawanime.adapters.RecyclerViewAdapter;
import com.example.ankush.rawanime.fetch.FetchRecentlyUpdated;
import com.example.ankush.rawanime.fetch.fetchLatestAnimes;
import com.example.ankush.rawanime.models.AnimeModel;

Expand Down Expand Up @@ -83,7 +84,7 @@ public void run() {

@Override
protected Void doInBackground(Void... voids) {
fetchLatestAnimes fetchAnimes=new fetchLatestAnimes();
FetchRecentlyUpdated fetchAnimes=new FetchRecentlyUpdated();
fetchAnimes.setList(mainPageUrl);
list.clear();
list.addAll(fetchAnimes.getList());
Expand Down

0 comments on commit 24ec457

Please sign in to comment.