Skip to content
Snippets Groups Projects
Commit 222aaa83 authored by Tamás Szabó's avatar Tamás Szabó
Browse files

fix random error

parent 874d456b
Branches
Tags
2 merge requests!12finished labor 6,!11implement mock
...@@ -64,7 +64,7 @@ public class MainPresenter extends Presenter<MainScreen> { ...@@ -64,7 +64,7 @@ public class MainPresenter extends Presenter<MainScreen> {
new Thread() { new Thread() {
@Override @Override
public void run() { public void run() {
Comic c = getComic(r.nextInt(maxId)); Comic c = getComic(r.nextInt(maxId-1)+1);
currentId = c.getNum(); currentId = c.getNum();
screen.getImage(c); screen.getImage(c);
checkFavorite(c); checkFavorite(c);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment