Remove loadable from post.finish

captchafix
Florens Douwes 11 years ago
parent 1a27b89bd5
commit e3d56facce
  1. 2
      Clover/app/src/main/java/org/floens/chan/core/model/Post.java
  2. 4
      Clover/app/src/main/java/org/floens/chan/core/net/ChanReaderRequest.java

@ -104,7 +104,7 @@ public class Post {
*
* @return false if this data is invalid
*/
public boolean finish(Loadable loadable) {
public boolean finish() {
if (board == null)
return false;

@ -163,7 +163,7 @@ public class ChanReaderRequest extends JsonReaderRequest<List<Post>> {
for (int no : invalidatedPosts) {
for (Post post : totalList) {
if (post.no == no) {
if (!post.finish(loadable)) {
if (!post.finish()) {
throw new IOException("Incorrect data about post received.");
}
break;
@ -397,7 +397,7 @@ public class ChanReaderRequest extends JsonReaderRequest<List<Post>> {
if (cachedResult != null) {
return cachedResult;
} else {
if (!post.finish(loadable)) {
if (!post.finish()) {
throw new IOException("Incorrect data about post received.");
}

Loading…
Cancel
Save