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

Commit

Permalink
removed local list which was causing emoty activity
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawkush committed Jul 20, 2018
1 parent 24ec457 commit 0991a22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public FetchRecentlyUpdated(){

public void setList(String url) {

List<AnimeModel> list=new ArrayList<>();
try {
Document doc = Jsoup.connect(url).get();
Elements container = doc.select("div.last_episodes.loaddub");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
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;

import org.jsoup.Jsoup;
Expand Down Expand Up @@ -84,7 +83,7 @@ public void run() {

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

0 comments on commit 0991a22

Please sign in to comment.