|
@ -1,7 +1,6 @@ |
|
|
package gr.thmmy.mthmmy.activities.topic.tasks; |
|
|
package gr.thmmy.mthmmy.activities.topic.tasks; |
|
|
|
|
|
|
|
|
import android.os.AsyncTask; |
|
|
import android.os.AsyncTask; |
|
|
import android.util.SparseArray; |
|
|
|
|
|
|
|
|
|
|
|
import org.jsoup.Jsoup; |
|
|
import org.jsoup.Jsoup; |
|
|
import org.jsoup.nodes.Document; |
|
|
import org.jsoup.nodes.Document; |
|
@ -9,13 +8,11 @@ import org.jsoup.nodes.Element; |
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
import java.io.IOException; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
|
|
|
|
import gr.thmmy.mthmmy.activities.topic.TopicParser; |
|
|
import gr.thmmy.mthmmy.activities.topic.TopicParser; |
|
|
import gr.thmmy.mthmmy.base.BaseApplication; |
|
|
import gr.thmmy.mthmmy.base.BaseApplication; |
|
|
import gr.thmmy.mthmmy.model.Post; |
|
|
import gr.thmmy.mthmmy.model.Post; |
|
|
import gr.thmmy.mthmmy.model.ThmmyPage; |
|
|
import gr.thmmy.mthmmy.model.ThmmyPage; |
|
|
import gr.thmmy.mthmmy.utils.parsing.ParseException; |
|
|
|
|
|
import gr.thmmy.mthmmy.utils.parsing.ParseHelpers; |
|
|
import gr.thmmy.mthmmy.utils.parsing.ParseHelpers; |
|
|
import okhttp3.Request; |
|
|
import okhttp3.Request; |
|
|
import okhttp3.Response; |
|
|
import okhttp3.Response; |
|
@ -143,7 +140,6 @@ public class TopicTask extends AsyncTask<String, Void, TopicTaskResult> { |
|
|
|
|
|
|
|
|
public interface TopicTaskObserver { |
|
|
public interface TopicTaskObserver { |
|
|
void onTopicTaskStarted(); |
|
|
void onTopicTaskStarted(); |
|
|
|
|
|
|
|
|
void onTopicTaskCancelled(); |
|
|
void onTopicTaskCancelled(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|